From b557c7ff8a7703056a0e1ec207b82a0baa40c718 Mon Sep 17 00:00:00 2001 From: Brett Garner Date: Wed, 16 Jul 2014 13:37:03 +1000 Subject: [PATCH] Fixed check for Leaflet.draw L.Edit.Poly check threw an error if Leaflet.draw is not available, as the L.Edit object is undefined. --- leaflet.snap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leaflet.snap.js b/leaflet.snap.js index c6c33a0..5f35d69 100644 --- a/leaflet.snap.js +++ b/leaflet.snap.js @@ -126,7 +126,7 @@ L.Handler.MarkerSnap = L.Handler.extend({ }); -if (!L.Edit.Poly) { +if (!L.Edit) { // Leaflet.Draw not available. return; }