1. #1
    Sencha User
    Join Date
    May 2012
    Posts
    7
    Vote Rating
    0
    blackangelnt is on a distinguished road

      0  

    Default Answered: Call function on class

    Answered: Call function on class


    i have a class like :

    Code:
    Ext.define('MW.controller.News', {
        extend: 'Ext.app.Controller',
        
        config: {
            refs: {           
                
            },       
            control: {    
             
            }
        },      
        // Event command
        onCallTest : function(){
            
        },    
    
     onTest2 : function(){
            // How to call onCallTest function on this function
        },  
    
        
    
    
        launch: function(app) {        
            this.callParent(arguments);        
            
        }
    });

    How to from onTest2 , i can call onCallTest function. I try : this.onCallTest or this.selft.onCallTest . But undefined .

  2. Hi blackangelnt,

    Code:
    this.onCallTest();
    should work actually.
    Which specific error-message do you receive? What is undefined?

    Best regards,
    Schildi

  3. #2
    Sencha User
    Join Date
    Mar 2011
    Posts
    83
    Answers
    16
    Vote Rating
    11
    Schildi will become famous soon enough

      0  

    Default


    Hi blackangelnt,

    Code:
    this.onCallTest();
    should work actually.
    Which specific error-message do you receive? What is undefined?

    Best regards,
    Schildi

  4. #3
    Sencha User
    Join Date
    May 2012
    Posts
    7
    Vote Rating
    0
    blackangelnt is on a distinguished road

      0  

    Default


    Oh no, because i dont declare before i call it

    Code:
    Function 1()
    {
    function2();
    }
    
    function 2(){}
    Tks ^^

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