jQuery Remove Event or Equivalent

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

jQuery Remove Event or Equivalent

ghempton
Is there a way to listen to when an element is removed from the DOM? I have logic which adds a listener to the $(window).resize event for each matched element and would like to be able to remove that listener when the element is removed. Does anyone know a way to do this?

Thanks,

--
Gordon Hempton
http://hempton.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "jQuery Plugins" group.
To post to this group, send email to [hidden email]
To unsubscribe from this group, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jquery-plugins?hl=en
-~----------~----~----~----~------~----~------~--~---