[jQuery] Memory leaks forever
Franck, can you point us to a complete implementation with all your code? I
am hoping that if I take a look at it I will be able to understand the leak
issue better.
Also, doing some more research I think that the original Dean Edwards
implementation of the event code in JQuery was written to avoid the memory
leak issues:
http://dean.edwards.name/weblog/2005/10/add-event/
http://dean.edwards.name/weblog/2005/10/add-event2/
But maybe the leak may only be avoided if you removeEvents before deleting
nodes.
-----Original Message-----
From: discuss-bounces@jquery.com [mailto:discuss-bounces@jquery.com] On
Behalf Of Franck Marcia
Sent: Saturday, March 25, 2006 8:16 PM
To: jQuery Discussion.
Subject: Re: [jQuery] Memory leaks forever
Here is my last attempt to fight memory leaks :
http://fmarcia.info/jquery/createnodes.js
It's a jQuery plugin based on Michael Geary's jquery-dom that implements
$().appendNodes with arguments like jquery-dom. The difference is that the
DOM insertion order is respected and events are bound *after* the element is
attached to the DOM.
Contrary to jquery-dom, you can't write things like myVar = $.DIV(...) but
you can use functions to bind to events like here:
$.DIV({'click':myFunc}).
It works fine (at least for me) but, unfortunately, this doesn't solve my
problem. Measurements are the same than the basic implementation :-(
Franck.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/