DracoBlue / jsb

A very extendable Toolkit to inject Javascript Behaviour into rendered HTML without Inline Javascript. (jsb was formerly known as JsBehaviourToolkit)
http://dracoblue.net
Other
52 stars 8 forks source link

logic to remove jsb.on-registrations as soon as the dom element disappears #7

Closed DracoBlue closed 11 years ago

DracoBlue commented 11 years ago

In some projects we have the problem, that lots of ajax code is replaced by new ajax code. In this case some jsb-handlers are registered on dom elements, which are already removed from the dom and will never be inserted again.

Usually this is not a problem at all, since you won't run into memory nor cpu issues if you don't register thousands of events within seconds.

But: It would be cool to fix that issue. ;)

Ideas are:

DracoBlue commented 11 years ago

Fixed with 3ba7a975dd1e1b3ad8533343c503a68f12b50c13