[Proto-Scripty] Re: Is stopObserving necessary?

2009-10-30 Thread david
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

[Proto-Scripty] Re: Is stopObserving necessary?

2009-10-30 Thread Peter De Berdt
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

[Proto-Scripty] Re: Is stopObserving necessary?

2009-10-30 Thread david
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

[Proto-Scripty] Re: Is stopObserving necessary?

2009-10-27 Thread T.J. Crowder
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