Skip to content

Commit

Permalink
PluggableMap: avoid crash when multiple interactions are removed
Browse files Browse the repository at this point in the history
  • Loading branch information
megawac committed Jul 22, 2020
1 parent f763df8 commit 225edaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ol/PluggableMap.js
Expand Up @@ -1045,7 +1045,7 @@ class PluggableMap extends BaseObject {
}
}
mapBrowserEvent.frameState = this.frameState_;
const interactionsArray = this.getInteractions().getArray();
const interactionsArray = this.getInteractions().getArray().slice();
if (this.dispatchEvent(mapBrowserEvent) !== false) {
for (let i = interactionsArray.length - 1; i >= 0; i--) {
const interaction = interactionsArray[i];
Expand Down

0 comments on commit 225edaa

Please sign in to comment.