Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin committed Jul 30, 2024
1 parent 3a1b154 commit 6833c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Store(ctx) {
renderRequest = null;
render.call(this);

// Fire a selection change event after rendering if the selection state changed
// Fire deduplicated selection change event
if (this._emitSelectionChange) {
this.ctx.events.fire(Constants.events.SELECTION_CHANGE, {
features: this.getSelected().map(feature => feature.toGeoJSON()),
Expand All @@ -42,7 +42,7 @@ export default function Store(ctx) {
this._emitSelectionChange = false;
}

// Fire `render` event
// Fire render event
this.ctx.events.fire(Constants.events.RENDER, {});
});
}
Expand Down

0 comments on commit 6833c52

Please sign in to comment.