Hi,
I'm having some trouble in using the events in extJS.
I have 2 files -
A.js and B.js
In A.js ->
Code:
functionStart: function() {
this.B = new B ({
listeners: {
'functionToUse': this.onFunctionToUse,
scope: this
}
});
},
onFunctionToUse: function(arg) {
alert("Needs To Reach Here");
}
}
In B.js ->
Code:
1) In constructor, I theres a button which invokes -> functionInvoker ();
2) //Custom defined events
this.addEvents({ 'functionToUse': true });
3) //AND then in body ->
functionInvoker: function() {
alert('Before');
this.fireEvent('functionToUse',argument);
alert("After");
},
My problem is the fireEvent is not working.
I get the alerts "Before" and "After", but the onFunctionToUse is not getting called..
Can someone please guide me a direction?