aboutsummaryrefslogtreecommitdiff
path: root/src/client/goldenLayout.js
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-07-10 13:01:16 -0400
committerab <abdullah_ahmed@brown.edu>2019-07-10 13:01:16 -0400
commite3f0338f8f4b223a7e4389aebeb20ede5555510b (patch)
tree3fb181c0b16161d2c8b1d7f0a7cbcd34f8e1c3c4 /src/client/goldenLayout.js
parent1fb746bcb228a348da1b4d8056aab59e073ee89e (diff)
parentfd8fcfe74fff78bc67b6302f917c53e69d598712 (diff)
merged
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r--src/client/goldenLayout.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/goldenLayout.js b/src/client/goldenLayout.js
index 54c9c6068..28c009645 100644
--- a/src/client/goldenLayout.js
+++ b/src/client/goldenLayout.js
@@ -2271,6 +2271,17 @@
this._dragListener.on('dragStop', this._createDragListener, this);
},
+ destroy: function () {
+ this._dragListener.destroy();
+ this._element = null;
+ this._itemConfig = null;
+ this._dragListener = null;
+ const index = this._layoutManager._dragSources.indexOf(this);
+ if (index > -1) {
+ this._layoutManager._dragSources.splice(index, 1);
+ }
+ },
+
/**
* Callback for the DragListener's dragStart event
*