View Full Version : HOW to Call function from a different class

sachin sachdeva
16 Oct 2010, 3:39 AM
can somebody tell me how to call a function defined in calss A from class B in extjs .plz tell me syntax

16 Oct 2010, 12:45 PM
classBFunction: function(){
var classA = new ClassA();



17 Oct 2010, 5:27 AM
If you need to call it within the class B scope. You can do it this way:

//Inside class B
ClassA.prototype.myFunction.call(this, [arg1, arg2]);