From f58b12585772bbe2a69ceb8f9e072d0527de1ce9 Mon Sep 17 00:00:00 2001 From: Matt Meshulam Date: Wed, 14 May 2014 12:25:41 -0500 Subject: [PATCH] Clear out clickedNode reference on data load --- Source/Loader/Loader.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Loader/Loader.js b/Source/Loader/Loader.js index 227e686..baed573 100644 --- a/Source/Loader/Loader.js +++ b/Source/Loader/Loader.js @@ -188,6 +188,10 @@ var Loader = { } else { this.root = json[i? i : 0].id; } + // Clear reference to no-longer-valid node + if(this.clickedNode) { + this.clickedNode = null; + } }, /*