Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #27687
| From | "Leonardo Azpurua" <leonardo@exmvps.org> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Is it necessary to explicitly destroy elements? |
| Date | 2015-05-16 11:14 -0430 |
| Organization | A noiseless patient Spider |
| Message-ID | <mj7odj$ejr$1@dont-email.me> (permalink) |
Hi, I have the idea of migrating a large Windows desktop application to the Web. The browser will be used as a sort of Windows desktop, on top of wich several "forms" (HTML divs) will be opened and closed. So far, I have managed to create a DIV, populating it with controls defined in a JSON object and attach events to these controls. Results are quite elementary yet, but the basic ideas seem to be pointing in the right direction. As things grow, several DIVs will be opened, used, closed and disposed. So far, my "disposal" is limited to removing the top container element (i.e. the "form" DIV) from the document (document.removeChild(xDiv)). My question (which is browser dependent, but there's no better place to ask browser related questions than here) is: do most "modern" browsers (say FireFox, Chrome, IE9+, Opera, Safari) automatically handle all the cleanup of a disposed element (detaching event handlers, freeing graphical resources, deallocating memory, etc) for all the elemets inside a disposed control, or is it necessary to provide a function to handle all of it explicitly? Regards!
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:14 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 17:44 +0200
Re: Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:32 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:06 +0200
Re: Is it necessary to explicitly destroy elements? "Leonardo Azpurua" <leonardo@exmvps.org> - 2015-05-16 11:42 -0430
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:12 +0200
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-16 18:09 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-16 22:05 -0300
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-17 08:01 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-17 13:29 -0300
Re: Is it necessary to explicitly destroy elements? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-05-17 19:06 +0200
Re: Is it necessary to explicitly destroy elements? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2015-05-17 11:53 +0200
Re: Is it necessary to explicitly destroy elements? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-05-17 13:20 -0300
csiph-web