[jQuery] In the pipeline

[jQuery] In the pipeline

Just a teaser for a couple of new goodies I have running and nearly ready to
contribute...
1) Leak-free closures! Right now, every page that uses jQuery and has inline
event methods leaks memory in IE. For example, Cody's demo page at
http://codylindley.com/blogstuff/js/jquery/ leaks about 100-150K each time
you reload the page. (Watch the IEXPLORE.EXE memory in Task Manager while
you reload the page repeatedly.) My app leaked several megabytes because I
have a lot of elements with event methods. Even worse, the memory leak made
the page run slower and slower each time you reloaded or re-visited it.
To fix this, I adapted and heavily modified this ingenious piece of code to
use with jQuery:
http://laurens.vd.oever.nl/weblog/items2005/closures/
No more memory leak, and I don't have to give up using closures and inline
event methods.
2) DOM creation methods, fairly similar to the ones in MochiKit, so you can
do things like:
$.DIV({ Class:"wrapper" },
"Here's a link: ",
$.A({ href:"http://mg.to/" }, "Mike's blog" )
);
Should have these ready to go over the weekend.
-Mike
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/