Cleanup transform listeners properly now.
This commit is contained in:
parent
98b3b44ed5
commit
1d94455c1a
@ -351,6 +351,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
close() {
|
close() {
|
||||||
|
console.log('SCATTER WAS CLOSED!')
|
||||||
this._callCloseCallbacks()
|
this._callCloseCallbacks()
|
||||||
this._removeCallbacks()
|
this._removeCallbacks()
|
||||||
this._removeSelfFromScatterContainer()
|
this._removeSelfFromScatterContainer()
|
||||||
@ -364,6 +365,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
|
|
||||||
_removeCallbacks() {
|
_removeCallbacks() {
|
||||||
this.onClose = []
|
this.onClose = []
|
||||||
|
this.onTransform = []
|
||||||
}
|
}
|
||||||
|
|
||||||
_removeSelfFromScatterContainer() {
|
_removeSelfFromScatterContainer() {
|
||||||
|
Loading…
Reference in New Issue
Block a user