philogb/jit — pull request #179 by meshulam (2014-05-14 17:37:27+00:00)
Title: Clear out clickedNode reference on data load

I ran into when reloading the data in a TreeMap. If I clicked on a node to set a new root, and then reloaded the data, compute() would try to set the root to the old value of this.clickedNode, resulting in an error and failure to redraw the graph.

This PR fixes the issue by clearing out the reference to clickedNode when loading data. The side effect is that reloading data and refreshing the plot will always bring you back to the root node, even if there's a new node with the same ID in the updated data.