Close callbacks on Scatter are now removed on close.
This commit is contained in:
parent
ca2ce289aa
commit
4f4215ced5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user