automata opened this issue 12 years ago · 1 comments
a destructor mirroring the initializeModule behaviour could be interesting to use cases like cleaning key bindings (Mousetrap binds) after removing a UI node (e.g. src/nodes/ui-makeymakey.js)
In native nodes it is remove() called from
remove()
https://github.com/meemoo/iframework/blob/gh-pages/src/node-box-view.js#L263
examples https://github.com/meemoo/iframework/blob/gh-pages/src/nodes/ui-button.js#L55 https://github.com/meemoo/iframework/blob/gh-pages/src/nodes/image-cam.js#L287