[jQuery] Re: Event Cleanup Slowness in Firefox

2009-03-26 Thread J K
Thank you - a switch to live solved the problem quite easily. I'm still wondering about the slowness. On Mar 26, 2:37 pm, Karl Swedberg wrote: > don't know why it's so much slower in Firefox, but if you're dealing   > with that many elements, you ought to consider using event delegation   > ins

[jQuery] Re: Event Cleanup Slowness in Firefox

2009-03-26 Thread Karl Swedberg
don't know why it's so much slower in Firefox, but if you're dealing with that many elements, you ought to consider using event delegation instead. You can use the .live() method ... $('td').live('click', function() { // do stuff }); ... or roll your own http://learningjquery.com/2008/0