Skip to content

Commit

Permalink
Merge pull request Leaflet#853 from eisverticker/develop
Browse files Browse the repository at this point in the history
Bugfix Leaflet#851 - Duplicate Listener in Edit.Circle
  • Loading branch information
ddproxy authored Aug 10, 2018
2 parents 33ea262 + e66f3c3 commit 2d6509b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/edit/handler/Edit.Circle.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,4 @@ L.Circle.addInitHook(function () {
this.editing.enable();
}
}

this.on('add', function () {
if (this.editing && this.editing.enabled()) {
this.editing.addHooks();
}
});

this.on('remove', function () {
if (this.editing && this.editing.enabled()) {
this.editing.removeHooks();
}
});
});

0 comments on commit 2d6509b

Please sign in to comment.