Cleanup transform listeners properly now.

This commit is contained in:
Severin Opel 2019-08-12 16:35:10 +02:00
parent 98b3b44ed5
commit 1d94455c1a
1 changed files with 3 additions and 1 deletions

View File

@ -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()
@ -362,8 +363,9 @@ export class AbstractScatter extends Throwable {
} }
} }
_removeCallbacks(){ _removeCallbacks() {
this.onClose = [] this.onClose = []
this.onTransform = []
} }
_removeSelfFromScatterContainer() { _removeSelfFromScatterContainer() {