Hi all!
I have a question regarding event listener.
Precondition: my browser page contains an ExtJS widget containing some grids, form panels, buttons, stores, etc. There are a lot of event handlers registered listening for event fired by ExtJs components. And my ExtJS widget defines own events and there are components listening for these events as well.
Do I need to unregister event listener when the user leaves this browser page? Or does the browser purge the event listener when purging the DOM tree?
Thanks
Frank
PS: Of course whenever I remove a component from my ExtJS widget directly, I have to care about unregistering event handlers.
It should clean up after itself.
removing a Component destroys that Component by default (You can override that if you want) and destroy cleans up the Component. Ext is getting better at garbage collection with each release.
Challenging Books For A 14 Year Old?
First guitar : acoustic or electric?
|