View Full Version : Feature Suggestion: PurgeListeners(event)
cwolves
06-06-2007, 04:03 PM
There should be a way to do:
purgeListeners('beforeclose')
or
removeListener('beforeclose'); // no function specified
schmidetzki
06-07-2007, 07:02 AM
There should be a way to do:
purgeListeners('beforeclose')
or
removeListener('beforeclose'); // no function specified
100% agreement.
Example:
If I load something into a contentPanel that registers events, it is important to unregister listeners when the panel is destroyed (the tab is closed).
(BTW: I am missing the event "beforeremove" in ContentPanel - the "beforeremove" is only fired in the LayoutRegion)
I helped myself with Ext.Ovservable.capture() sometimes, but have to handle ALL events in this case.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.