Skip to content

Commit

Permalink
fix newPoly
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofsumit committed Feb 15, 2016
1 parent f428b2c commit 583b73d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/leaflet.pm.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ L.PM = L.PM || {

},
'afterClick': function(e) {

var newPoly;

if(this.toggled()) {
newPoly = new L.PM.Draw.Poly(map);
newPoly.enable();
Expand Down
2 changes: 1 addition & 1 deletion dist/leaflet.pm.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/js/L.PM.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ L.PM = L.PM || {

},
'afterClick': function(e) {

var newPoly;

if(this.toggled()) {
newPoly = new L.PM.Draw.Poly(map);
newPoly.enable();
Expand Down

0 comments on commit 583b73d

Please sign in to comment.