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?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Is it necessary to explicitly destroy elements?
Date Sat, 16 May 2015 18:06:04 +0200
Organization PointedEars Software (PES)
Lines 34
Message-ID <1973238.TzKXuHrKGN@PointedEars.de> (permalink)
References <mj7odj$ejr$1@dont-email.me> <1445670.lN8oQKCnmD@PointedEars.de> <mj7pf4$iar$1@dont-email.me>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding 8Bit
X-Trace solani.org 1431792527 32707 eJwNwoERwCAIBLCVQOCVcd4C+49gLwmD4tuOgMf8NLOYemfVuBRXG2eLeXQhL1IgpwnjoQUfIZURMA== (16 May 2015 16:08:47 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Sat, 16 May 2015 16:08:47 +0000 (UTC)
User-Agent KNode/4.14.2
X-User-ID eJwNysEBwEAEBMCWToKlHOzpv4Rk3mOviw/UzdXWNruOBzmqTYtwRlWscKaJhJgXDvqCdy/l3DSATzJs/v0BeY0WeQ==
Cancel-Lock sha1:PU6SHk2PlVM3mqCpiM7IFoXSxCM=
X-NNTP-Posting-Host eJwNwocRwDAIBLCVKH7KOATM/iM4J0GNrf0Y7GB/4czCvkburUWDnKQM1Y5tyUrUhaxPQb77AP7dELE=
Xref csiph.com comp.lang.javascript:27692

Show key headers only | 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