Path: csiph.com!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeder5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: removeEventListener why Date: Tue, 07 Feb 2017 17:31:02 +0100 Organization: PointedEars Software (PES) Lines: 31 Message-ID: <5241706.lOV4Wx5bFT@PointedEars.de> References: <10efabc5-8543-46ac-9674-576a9c16ed68@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1486485063 20239 eJwNysEBwCAIA8CVEEOUcWgo+4/Q3vtic1EHDCIm5tbut1BMeZsbZuuqO9DrHxaHWcMW0h/TfCTTEV0= (7 Feb 2017 16:31:03 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Tue, 7 Feb 2017 16:31:03 +0000 (UTC) User-Agent: KNode/4.14.2 Cancel-Lock: sha1:tMHnin78W6TESBdnfk3SwhwYyhs= X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On Monday, February 6, 2017 at 6:46:14 PM UTC-6, Andrew Poulos wrote: >> Is it good practice to remove all listeners I add or does it make no >> difference? I'm usually careful about removing all listeners I add but I >> don't know if today it serves any real purpose. >> >> In the past I used to be worried about memory leaks. Is it still an >> issue? > > Doesn't matter anymore on modern browsers. True; however, it is a good rule of thumb. Backwards-compatibility can be important; I would think that it is in Andrew’s case (IIRC, he is developing e-learning applications based on Moodle). In which browser/layout engine versions is this issue resolved? > Beware of doing things with an or tag > though if you have them. God knows what happens when you interact with > browser plugins with a bridge. ACK. PointedEars -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.