PDA

View Full Version : Problem of custom events, HELP!



ivanzhaowy
3 Feb 2010, 9:13 PM
I make a new class which extended the Ext.util.Observable, and some custom events in it. When i trying to instance it like this:


var a = new MyObject({
listeners:{
someEvent:function(){}
}
})

the firebug through out 'me.on is not a function'.

Then I check the API docs and follow the example in Observable, meet the same problem.
http://www.extjs.com/deploy/dev/docs/output/Ext.util.Observable.html

HELP! and thx

evant
3 Feb 2010, 10:23 PM
You need to post the definition of your custom class.