-
13 Nov 2012 7:40 AM #1
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 .
-
Best Answer Posted by Schildi
Hi blackangelnt,
should work actually.Code:this.onCallTest();
Which specific error-message do you receive? What is undefined?
Best regards,
Schildi
-
13 Nov 2012 7:56 AM #2
Hi blackangelnt,
should work actually.Code:this.onCallTest();
Which specific error-message do you receive? What is undefined?
Best regards,
Schildi
-
13 Nov 2012 8:33 AM #3
Oh no, because i dont declare before i call it

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


Reply With Quote