Great article!

I have a long running single page javascript application so I am well
aware of the problems with IE and garbage collecting :)

Basically what I tend to do to make sure I dont keep any references
around is to act like there is no garbage collecting and use a
destructor function which cleans up the object when its finished.

So basically I have an onDestroy() that I call on my objects. It
easier to keep track of your references in a small object so calling
onDestroy on the objects when I know I am done with them provides a
nice way to clean up.

On Jan 5, 4:44 pm, Bryan Forbes <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have just posted an article about event handler leaks in Internet
> Explorer, identifying the pattern, and how to avoid them.  I would
> appreciate any feedback:
>
> http://www.reigndropsfall.net/2011/01/05/internet-explorer-event-hand...
>
> - --
> Bryan Forbeshttp://www.reigndropsfall.net
>
> GPG Fingerprint
> 3D7D B728 713A BB7B B8B1  5B61 3888 17E0 70CA 0F3D
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk0k5kYACgkQOIgX4HDKDz0PxwCeL3VuS7q9s3H40U65qKuPMKb5
> GFAAnRdaBPG63Hstb9Joh8SQY0APgH/f
> =xz/r
> -----END PGP SIGNATURE-----

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to