Friday, May 29, 2009

[jQuery] question re: .live() and .empty()

Hi All,

Wondering if someone knows the answer to this:

Using jQuery 1.3.2, if some items inside a div have events bound to them
via .live() and then .empty() is called on the div will the events that
were bound via .live() get removed? The .empty() doc says:

http://docs.jquery.com/Manipulation/empty

Note that this function starting with 1.2.2 will also remove all event
handlers and internally cached data.

But something I'm working on makes me think that the .live() events are
not removed. I haven't nailed it down yet.

Thanks,
Jack

No comments: