#1025 new
ronin-93814 (at lighthouseapp)

Observed elements should only be pushed to the `CACHE` if on IE

Reported by ronin-93814 (at lighthouseapp) | April 7th, 2010 @ 10:42 AM

All observed elements are being pushed to the CACHE array. This array is used only on IE to be able to clean up the event listeners in the _destroyCache method, which is called upon window.onunload. This patch puts an if (Prototype.Browser.IE) around the invocation of CACHE.push(element); to save some memory on other browsers.

This ticket is related to #466 (Suppress memory leaks from Element.remove and Elemen.update).

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket


Referenced by