diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-11 19:19:40 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-11 19:19:40 -0400 |
| commit | 7f13e25550761bd174b26a64ed73374c2d5da964 (patch) | |
| tree | f4809b30cf426f1051b98abc71384c58598856ec /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 618e66a5a070f1aac9224bd3f44b76a5ac314bfa (diff) | |
fixed marquee issues and got rid of captions for images.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index 6a0404663..94005a4c0 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -150,9 +150,13 @@ export class CollectionDockingView extends React.Component<SubCollectionViewProp } } componentWillUnmount: () => void = () => { - this._goldenLayout.unbind('itemDropped', this.itemDropped); - this._goldenLayout.unbind('tabCreated', this.tabCreated); - this._goldenLayout.unbind('stackCreated', this.stackCreated); + try { + this._goldenLayout.unbind('itemDropped', this.itemDropped); + this._goldenLayout.unbind('tabCreated', this.tabCreated); + this._goldenLayout.unbind('stackCreated', this.stackCreated); + } catch (e) { + + } this._goldenLayout.destroy(); this._goldenLayout = null; window.removeEventListener('resize', this.onResize); |
