Close callbacks on Scatter are now removed on close.

This commit is contained in:
Severin Opel 2019-08-12 10:04:03 +02:00
parent ca2ce289aa
commit 4f4215ced5
1 changed files with 5 additions and 0 deletions

View File

@ -371,6 +371,7 @@ export class AbstractScatter extends Throwable {
close() { close() {
this._callCloseCallbacks() this._callCloseCallbacks()
this._removeCallbacks()
this._removeSelfFromScatterContainer() this._removeSelfFromScatterContainer()
} }
@ -380,6 +381,10 @@ export class AbstractScatter extends Throwable {
} }
} }
_removeCallbacks(){
this.onClose = []
}
_removeSelfFromScatterContainer() { _removeSelfFromScatterContainer() {
/** /**
Removes self from container when it's closed. Removes self from container when it's closed.