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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar