diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-04 19:54:27 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-07-04 19:54:27 -0400 |
commit | 1b02511185e22349e68bab1f6b8ce74b874a3ba5 (patch) | |
tree | 14f80115d1799e12849facd3e94b9d29cb95d43c /src/client/goldenLayout.js | |
parent | ad78429768c411eba47e2b8a197efe4d1e9c3824 (diff) |
Made some changes to clean up some GoldenLayout stuff
Diffstat (limited to 'src/client/goldenLayout.js')
-rw-r--r-- | src/client/goldenLayout.js | 11 |
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 * |