doh.  Now I feel really bad for not looking at the docs.

Thank you very much for kindly pointing that out to me!


On Apr 8, 12:17 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> 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 Swedbergwww.englishrules.comwww.learningjquery.com

Reply via email to