[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-09-01 Thread James
Correct me if I'm wrong, but I think Firefox does cleanup those events, but IE (v6 at least, I know) doesn't, so it creates memory leaks. It's probably good practice to unbind them. On Sep 1, 1:18 pm, roydukkey wrote: > Is it necessary to unbind events from elements before removing them. > As li

[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-09-01 Thread mkmanning
.remove() "will also remove all event handlers and internally cached data" http://docs.jquery.com/Manipulation/remove#expr On Sep 1, 4:18 pm, roydukkey wrote: > Is it necessary to unbind events from elements before removing them. > As like the following: > > $("#list").find("li").unbind("hover")

[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-09-01 Thread roydukkey
Sorry, I can't verify your claim. But, you know for sure that ie6 leaks, then it's important that I unbind them. Thanks, James. On Sep 1, 8:20 pm, James wrote: > Correct me if I'm wrong, but I think Firefox does cleanup those > events, but IE (v6 at least, I know) doesn't, so it creates memory >

[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-10-06 Thread mirage
An additional question I have for sake of completeness Will empty(), remove() unbind just child element events (1 level down) or events for ALL descendants? Thanks, J On Sep 1, 8:50 pm, mkmanning wrote: > .remove() "will also remove all event handlers and internally cached > data"http://docs.

[jQuery] Re: Do events remain is memory when element is removed from DOM?

2009-10-06 Thread Mike Alsup
> An additional question I have for sake of completeness > > Will empty(), remove() unbind just child element events (1 level down) > or events for ALL descendants? All descendants.