Re: [jquery-dev] make cleanData available

2010-01-15 Thread John Resig
So we talked about this and it really seems like we should try to provide a better interface (like the 'remove' event used in jQuery UI). I'm going to come back to this issue once 1.4.1 is out so we can discuss it more. --John On Wed, Jan 13, 2010 at 10:35 AM, Justin Meyer wrote: > jQuery.UI a

[jquery-dev] make cleanData available

2010-01-13 Thread Justin Meyer
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){