View Full Version : Feature Suggestion: PurgeListeners(event)
cwolves
6 Jun 2007, 1:03 PM
There should be a way to do:
purgeListeners('beforeclose')
or
removeListener('beforeclose'); // no function specified
schmidetzki
7 Jun 2007, 4: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.
Powered by vBulletin® Version 4.1.5 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.