Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #27692

Re: Is it necessary to explicitly destroy elements?

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Is it necessary to explicitly destroy elements?
Date 2015-05-16 18:06 +0200
Organization PointedEars Software (PES)
Message-ID <1973238.TzKXuHrKGN@PointedEars.de> (permalink)
References <mj7odj$ejr$1@dont-email.me> <1445670.lN8oQKCnmD@PointedEars.de> <mj7pf4$iar$1@dont-email.me>

Show all headers | View raw


Leonardo Azpurua wrote:

> "Thomas 'PointedEars' Lahn" <PointedEars@web.de> escribi� en el mensaje
> news:1445670.lN8oQKCnmD@PointedEars.de...
>> Leonardo Azpurua wrote:
>>> […] 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?
>> Yes.
> 
> :-)
> 
> Ok... my wrong!

I think the correct colloquial expression is “my _bad_”.

> Yes, what?
> Yes, they do properly handle all the disposal process?
> Or yes, I must provide a proper disposal function?

AFAIK none of the listed browsers experience memory leaks if you leave the 
clean-up to them.  As that is a feature of the layout engine, this applies 
to all browsers using the same layout engine, and should apply to all that 
are using a layout engine that is based on one of the former’s.

A statement regarding “most (modern) browsers” is untrustworthy.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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