The removed element? Just because an element has been detached from the visible DOM doesn't mean that the reference can be maintained elsewhere. It would be no edge case to detach and re-attach a particular element, so to think that an element should be trashed just because it has no parent node is a bad perception.
Prototype has accomodations for IE's poor garbage collection tactics and has a cleanup method for this that gets handled transparently to you. -- http://positionabsolute.net On Oct 6, 12:05 pm, Ngan Pham <[email protected]> wrote: > Hey everyone, > I have a quick question. If put some Event#observe on an element...and then > later remove the element with Element#remove, do I have to do > Event#stopObserving? Or do the event detach themselves once garbage > collection picks up the removed element? > > Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
