29 Feb 2012 2:28 AM #1
Unanswered: Removing all module components from DOM
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 #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.
1 Mar 2012 5:53 AM #3
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 #4
Can someone please help me with this issue?