Skip to content

Commit

Permalink
Fixed check for Leaflet.draw
Browse files Browse the repository at this point in the history
L.Edit.Poly check threw an error if Leaflet.draw is not available, as the L.Edit object is undefined.
  • Loading branch information
tsbgarner committed Jul 16, 2014
1 parent ced6d05 commit b557c7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion leaflet.snap.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ L.Handler.MarkerSnap = L.Handler.extend({
});


if (!L.Edit.Poly) {
if (!L.Edit) {
// Leaflet.Draw not available.
return;
}
Expand Down

0 comments on commit b557c7f

Please sign in to comment.