-
13 Feb 2013 11:27 AM #1
Answered: Is there a way to fire a controller event straight from a listener?
Answered: Is there a way to fire a controller event straight from a listener?
Is there a way to do something like this:
The above code fires the event instead of adding the listener.Code:button.on( 'tap', MyApp.app.fireAction('doSomething'), // This does not work MyApp.app );
The reason to do this is to avoid having to create a private method just to fire the event.Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.
-
Best Answer Posted by bluehipyPHP Code:
button.on(
'tap',
function() {
MyApp.app.fireAction('doSomething'), // This does work
}
);
-
13 Feb 2013 2:05 PM #2
PHP Code:button.on(
'tap',
function() {
MyApp.app.fireAction('doSomething'), // This does work
}
);
Latest thoughts on the subject: http://joy2share.com/senchatouch/
-
13 Feb 2013 2:56 PM #3
It does indeed! I didn't think of using a wrapper, thanks!
Olivier - interfaSys
Developing custom solutions for BlackBerry 10 using Sencha Touch.


Reply With Quote