If I observe events on elements that I later replace with new elements
with innerHTML, do I need to stopObserving those events before
replacing the elements. I guess I'm mostly concerned about memory
leakage. E.g:

<div id="inputs">
        <input type="text" name="input1" /> ... <input type="text"
name="input100" />

$('inputs').select('input').invoke('observe', 'blur', function()

$('inputs').innerHTML = '<input type="text" name="input101" /> ...
<input type="text" name="input200" />';

$('inputs').select('input').invoke('observe', 'blur', function()


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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to