mar10/fancytree — pull request #121 by Koloto (2014-01-14 15:57:06+00:00)
Title: cleanup associated jQuery data before rerendering a node

Some jQuery data can be associated with a `node.span`. For example you can bind an event handler or add something with `$.data()` in `nodeRender` callback. When the node is removed, `$.remove()` method is used and that data is cleaned by jQuery. But if node is rerendered the `node.span.innerHtml` is set directly, so associated data is NOT cleaned. It can cause memory leaks. Must use `$.html()` method instead.