Leaflet / Leaflet.draw

Vector drawing and editing plugin for Leaflet
https://leaflet.github.io/Leaflet.draw/docs/leaflet-draw-latest.html
MIT License
1.98k stars 994 forks source link

Declare undeclared var #961

Open astridx opened 5 years ago

astridx commented 5 years ago

When I use Leaflet.draw I sometime get the error: ReferenceError: assignment to undeclared variable typeleaflet.draw-src.js:3161:11 Variables had to be declared: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Undeclared_var

This PR fixed my issue.