On Apr 8, 2008, at 9:11 AM, tlphipps wrote:

I have some pages where I'm adding elements, then attaching click
event handlers to them.  Later on (based on user interaction), those
elements are being removed from the page.

Is there any benefit to calling unbind('click') on those elements
before I remove() them?  Or does remove() effectively remove that
click handler from memory as well?


From the docs:

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

http://docs.jquery.com/Manipulation/remove#expr


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Reply via email to