[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread jay
html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René renefourn...@gmail.com wrote: I have a dynamically generated a long list of items with events bound to them. I was wondering, when I clear the list, or

[jQuery] Re: $('#list').unbind().html('') -- redundant?

2009-01-28 Thread René
Thanks saves me some code, and perhaps a few cycles. On Jan 28, 10:46 am, jay jay.ab...@gmail.com wrote: html('') calls empty() so starting with 1.2.2 it will also remove all event handlers and internally cached data. On Jan 28, 11:48 am, René renefourn...@gmail.com wrote: I have a