diff options
author | bob <bcz@cs.brown.edu> | 2019-07-08 13:54:35 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-07-08 13:54:35 -0400 |
commit | 65942b78ba3f927beacf19a5d8b751442ba40fda (patch) | |
tree | e1a8c5a8ce3f17daa5b2f73006888312e09395cb /src/client/goldenLayout.js | |
parent | 5348a12503ccfd8d0f67085b189f8ab0037a1edd (diff) | |
parent | b2dc1c1d5e31a6241851d418db3a64ae6ca4dde8 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
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 * |