Answered: Calling a function on the application class from a controller
I want to call a function on my main application class on a controller
I have tried
Both give me the error
Uncaught TypeError: Cannot read property 'id' of undefined
However when I trace the application via
The application class is in the console and I can see my function as part of the class.
Any ideas? or a better way to have a controller call a function on the application class?
Posted by deliriousrhino
I have gotten around the problem by listening for an event from the controller in the application
Which is probably the better way.
Still would not mind to know why the call to the application function failed
Thread Participants: 1
Tags for this Thread