diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-07-14 17:08:03 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-07-14 17:08:03 -0400 |
commit | 7f011d633021fece4d071b741f8571440236ea71 (patch) | |
tree | ce2e7dc7c29a2a2ebab57efbc8001b2d753819d8 /src/client/goldenLayout.js | |
parent | 2575564d70828820521074455383e940d521cca8 (diff) | |
parent | 7d9e29690956327d1ed9981cd2882d08b72b5c86 (diff) |
pulled from master
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 * |