Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge 427d0b3 into 1222ed1
  • Loading branch information
Pessimistress committed Apr 29, 2019
2 parents 1222ed1 + 427d0b3 commit fdde5ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/core/src/lib/layer-manager.js
Expand Up @@ -109,6 +109,11 @@ export default class LayerManager {
// Method to call when the layer manager is not needed anymore.
// Currently used in the <DeckGL> componentWillUnmount lifecycle to unbind Seer listeners.
finalize() {
// Finalize all layers
for (const layer of this.layers) {
this._finalizeLayer(layer);
}

seer.removeListener(this._initSeer);
seer.removeListener(this._editSeer);
}
Expand Down

0 comments on commit fdde5ba

Please sign in to comment.