1. #1
    Sencha User interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default 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:
    Code:
    button.on(
                    'tap',
                    MyApp.app.fireAction('doSomething'), // This does not work
                    MyApp.app
                );
    The above code fires the event instead of adding the listener.

    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.

  2. PHP Code:
    button.on(
                    
    'tap',
                     function() {
                               
    MyApp.app.fireAction('doSomething'), // This does work
                    
    }
                ); 

  3. #2
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Answers
    66
    Vote Rating
    26
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      1  

    Default


    PHP Code:
    button.on(
                    
    'tap',
                     function() {
                               
    MyApp.app.fireAction('doSomething'), // This does work
                    
    }
                ); 
    Latest thoughts on the subject: http://joy2share.com/senchatouch/

  4. #3
    Sencha User interfasys's Avatar
    Join Date
    Mar 2011
    Location
    UK & Switzerland
    Posts
    125
    Vote Rating
    1
    interfasys is on a distinguished road

      0  

    Default


    It does indeed! I didn't think of using a wrapper, thanks!
    Olivier - interfaSys
    Developing custom solutions for BlackBerry 10 using Sencha Touch.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi