Skip to content

Commit

Permalink
fix(RasterTile): Fix RasterTile removeEvent when view.dispose is called
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin ETOURNEAU authored and jailln committed Feb 26, 2024
1 parent 5d84b37 commit 33d0e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/RasterTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class RasterTile extends THREE.EventDispatcher {
}
}

dispose(removeEvent) {
dispose(removeEvent = true) {
if (removeEvent) {
this.layer.removeEventListener('visible-property-changed', this._handlerCBEvent);
this.layer.removeEventListener('opacity-property-changed', this._handlerCBEvent);
Expand Down

0 comments on commit 33d0e8d

Please sign in to comment.