Cleanup transform listeners properly now.

This commit is contained in:
Severin Opel 2019-08-12 16:35:10 +02:00
parent 98b3b44ed5
commit 1d94455c1a

View File

@ -351,6 +351,7 @@ export class AbstractScatter extends Throwable {
}
close() {
console.log('SCATTER WAS CLOSED!')
this._callCloseCallbacks()
this._removeCallbacks()
this._removeSelfFromScatterContainer()
@ -362,8 +363,9 @@ export class AbstractScatter extends Throwable {
}
}
_removeCallbacks(){
_removeCallbacks() {
this.onClose = []
this.onTransform = []
}
_removeSelfFromScatterContainer() {