This project is archived and is in readonly mode.

#557 ✓wontfix
Kenton

Ability To Hook Into Mootools GC

Reported by Kenton | January 16th, 2009 @ 05:44 PM | in 2.0 (closed)

Before the mootools garbage collector runs I'd like to run my own cleanup routines (to prevent memory leaks in IE).

If I add an unload event the mootools purge has already ran and causes various problems (such as storage being null).

I think the mootools way would be to be able to add a custom event 'beforePurge' or something like that.

An alternative (easier?) solution is if purge was accessible outside of core.js I could manually remove the listener and call it after I ran my own cleanup routine.

Any thoughts? Am I missing something that I could use to provide similar functionality?

Comments and changes to this ticket

Create your profile

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

Shared Ticket Bins

People watching this ticket

Pages