Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mcwhittemore committed Jan 29, 2016
1 parent f770392 commit 431eebf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Store {
*/
set(feature) {
this._features[feature.drawId] = feature;
this._features[feature.drawId].commited = true;
this._render();
return feature.drawId;
}
Expand Down Expand Up @@ -103,7 +104,7 @@ export default class Store {
if (this._features[id] && !this._features[id].selected) {
this._features[id].selected = true;
this._render();
if (this._features[id].created) {
if (this._features[id].commited) {
this._map.fire('draw.select.start', {
id: id,
geojson: this._features[id].toGeoJSON()
Expand Down

0 comments on commit 431eebf

Please sign in to comment.