Permalink
Browse files

Merge pull request #669 from cfis/editingFix

Check this.edit is set
  • Loading branch information...
2 parents 8528b38 + d6af5e8 commit 27a5f7414f18be926cc2e247ad32044a737f6abf @mourner mourner committed May 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/layer/vector/Polyline.js
@@ -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();
}
},

0 comments on commit 27a5f74

Please sign in to comment.