Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #669 from cfis/editingFix

Check this.edit is set
  • Loading branch information...
commit 27a5f7414f18be926cc2e247ad32044a737f6abf 2 parents 8528b38 + d6af5e8
Vladimir Agafonkin authored May 07, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  src/layer/vector/Polyline.js
2  src/layer/vector/Polyline.js
@@ -90,7 +90,7 @@ L.Polyline = L.Path.extend({
90 90
 	onAdd: function (map) {
91 91
 		L.Path.prototype.onAdd.call(this, map);
92 92
 
93  
-		if (this.editing.enabled()) {
  93
+		if (this.editing && this.editing.enabled()) {
94 94
 			this.editing.addHooks();
95 95
 		}
96 96
 	},

0 notes on commit 27a5f74

Please sign in to comment.
Something went wrong with that request. Please try again.