Merge branch 'master' of gitea.iwm-tuebingen.de:IWMBrowser/iwmlib
This commit is contained in:
commit
03be6673c5
@ -351,7 +351,9 @@ export class AbstractScatter extends Throwable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
console.log('SCATTER WAS CLOSED!')
|
||||||
this._callCloseCallbacks()
|
this._callCloseCallbacks()
|
||||||
|
this._removeCallbacks()
|
||||||
this._removeSelfFromScatterContainer()
|
this._removeSelfFromScatterContainer()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,6 +363,11 @@ export class AbstractScatter extends Throwable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_removeCallbacks() {
|
||||||
|
this.onClose = []
|
||||||
|
this.onTransform = []
|
||||||
|
}
|
||||||
|
|
||||||
_removeSelfFromScatterContainer() {
|
_removeSelfFromScatterContainer() {
|
||||||
// Removes self from container when it's closed.
|
// Removes self from container when it's closed.
|
||||||
if (this.container) {
|
if (this.container) {
|
||||||
|
Loading…
Reference in New Issue
Block a user