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
.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")
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
>
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.
> 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.
5 matches
Mail list logo