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; + } }, /*