diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-08 19:55:39 -0400 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-07-08 19:55:39 -0400 |
commit | b91fc6aadf03ef0a65adb085076263b462de9423 (patch) | |
tree | 9cb11317302027ec8bafc37bf6479fc2ed7d5969 /src/client/goldenLayout.js | |
parent | 04887c8a578147015421d3909bd100c82ac5e31d (diff) | |
parent | 4944abd854e672f62926089f3619b92dcaf3b2ca (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into import
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 * |