javascript - necessary to remove event handlers by hand? -
morning,
when using element#observe(), necessary call element#stopobserving() rid of event handler?
or inbuilt mechanism realize handler no longer necessary when element gets removed in way (.update() on parent, not .remove()) ?
updating large dynamic lists several bindings per entry every , then. drawbacks when using like
ul.update(''); data.each(.. ul.insert(x); x.bind(..); ..); thanks!
if element no longer part of dom garbage collection deal it's handlers, depend on browser.
i suggest not worry out of control , @ using event.on() instead.
Comments
Post a Comment