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

View File

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