PDA

View Full Version : how to remove listeners from the components



petcy
17 Dec 2010, 1:46 AM
hiii

i've onBlur,onselect, onFocus events on textfields, combo..etc...

i want to remove that listeners on button click how????

lukefowell89
17 Dec 2010, 1:59 AM
Not certain but cant you just use un or removeListener...



un (http://dev.sencha.com/deploy/dev/docs/source/Observable.html#method-Ext.util.Observable-un)( String eventName, Function handler, [Object scope] )

petcy
17 Dec 2010, 2:05 AM
thank u...but

this is enough..
Ext.getCmp('name').events['blur'].clearListeners();

petcy
13 Jan 2011, 12:56 AM
again reseting listener is possible?????????????