Skip to content

Commit

Permalink
Merge pull request Leaflet#669 from cfis/editingFix
Browse files Browse the repository at this point in the history
Check this.edit is set
  • Loading branch information
mourner committed May 7, 2012
2 parents 8528b38 + d6af5e8 commit 27a5f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/vector/Polyline.js
Expand Up @@ -90,7 +90,7 @@ L.Polyline = L.Path.extend({
onAdd: function (map) {
L.Path.prototype.onAdd.call(this, map);

if (this.editing.enabled()) {
if (this.editing && this.editing.enabled()) {
this.editing.addHooks();
}
},
Expand Down

0 comments on commit 27a5f74

Please sign in to comment.