jQuery.UI and a few other plugins require a 'teardown' callback by hacking removeData, remove, html, empty, etc.
In 1.4, it would be very easy to hack in teardown if cleanData was exposed. So something like: var cd = jQuery.cleanData jQuery.cleanData = function(elems){ //check elems for(var i =0; i < elems.length; i++){ var plugins = jQuery.data(elems[i],"plugins")|| {} for(cname in plugins) if(typeof plugins[cname].teardown == "function") plugins[cname].teardown(); } cd.apply(this, arguments) } would work. This is extremely easy way to add teardown as everything that might remove an element calls this method. If this is something you might accept in 1.4, please let me know and I will submit a patch. It's really as easy as a find-replace, but I want to make sure that jQuery.cleanData is an appropriate place for the function. Thanks.
-- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.