From c90c0e7461da1214f929ec8e6133384807063e0d Mon Sep 17 00:00:00 2001 From: Johan Date: Fri, 25 Jan 2019 13:07:36 +0100 Subject: [PATCH] Release all graph nodes during uninitialize --- src/TreeView/widget/TreeView.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/TreeView/widget/TreeView.js b/src/TreeView/widget/TreeView.js index 5572efe..bc0ca8e 100644 --- a/src/TreeView/widget/TreeView.js +++ b/src/TreeView/widget/TreeView.js @@ -205,6 +205,13 @@ require([ dojo.forEach(this.actions, function (action) { action.free(); }); + + // Free all graph nodes and their subscription + for (var key in this.dict) { + if (this.dict.hasOwnProperty(key)) { + this.dict[key].free(); + } + } }, /* MWE: not sure if these suspended are supposed here, or where deliberately deleted before merging with main branch..