Merge branch 'master' of gitea.iwm-tuebingen.de:IWMBrowser/iwmlib

This commit is contained in:
Sebastian Kupke 2019-08-13 12:46:32 +02:00
commit 03be6673c5
1 changed files with 7 additions and 0 deletions

View File

@ -351,7 +351,9 @@ export class AbstractScatter extends Throwable {
}
close() {
console.log('SCATTER WAS CLOSED!')
this._callCloseCallbacks()
this._removeCallbacks()
this._removeSelfFromScatterContainer()
}
@ -361,6 +363,11 @@ export class AbstractScatter extends Throwable {
}
}
_removeCallbacks() {
this.onClose = []
this.onTransform = []
}
_removeSelfFromScatterContainer() {
// Removes self from container when it's closed.
if (this.container) {