View Full Version : Removing all module components from DOM

29 Feb 2012, 2:28 AM
is there an easy way to destroy all views, stores and models which belong to specific controller from DOM?
For example: I have a window with grid in it and I want to remove everything from DOM what is used by this window (and grid) after I close this window.

29 Feb 2012, 7:27 AM
By default closeAction on a window is set to destroy the window so when you do a window.close() the window will be destroyed and all it's items will be also so the DOM from all those components will be removed.

1 Mar 2012, 5:53 AM
Thank you for answer.
I still can find all related components of administration module in DOM after i close the Window. Like you can see in attached screenshot of firebug DOM explorer, there are still controller, stores, models and views used by this window (module).

Because I plan to make big app using web desktop, I want to keep the memory used by browser as low as possible to make the app usable.

15 Jun 2012, 12:15 AM
Can someone please help me with this issue?