Skip to content

Commit

Permalink
Make jake happy
Browse files Browse the repository at this point in the history
  • Loading branch information
danzel committed Aug 25, 2015
1 parent a9e409d commit d3ec83b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edit/handler/Edit.Poly.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ L.Edit.Poly = L.Handler.extend({
_spliceLatLngs: function (index, count, toAdd) {
var latLngs = this._isPolygon ? this._poly._latlngs[0] : this._poly._latlngs;

if (toAdd != null) {
if (toAdd) {
latLngs.splice(index, count, toAdd);
} else {
latLngs.splice(index, count);
Expand Down

0 comments on commit d3ec83b

Please sign in to comment.