Hi Simon,
you should use event delmeguation so that, you first only set one
observer, and then you can freely modify the DOM and still access to
your event.
--
david
On 27 oct, 09:55, T.J. Crowder t...@crowdersoftware.com wrote:
Hi Simon,
...do I need to stopObserving those events before
Event delegation is indeed a wonderful thing. One thing to watch out
for here though is that input blur, focus and form submit don't bubble
(don't know if it's on all browsers, but certainly on some). There's
NWEvents (http://javascript.nwbox.com/NWEvents/) that handles those
special cases
Good catch Peter, my explanation was lacking ... explanation :))
btw, NWEvent is impressive, like NWMatcher:
http://javascript.nwbox.com/NWMatcher/
I recommand using both !
--
david
On 30 oct, 11:11, Peter De Berdt peter.de.be...@pandora.be wrote:
Event delegation is indeed a wonderful
Hi Simon,
...do I need to stopObserving those events before
replacing the elements.
Yes, otherwise a variety of things do indeed sit around in memory.
HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com
On Oct 26, 7:07 pm, Simon