fix marker drag regression

This commit is contained in:
Vladimir Agafonkin 2013-12-27 19:27:11 +02:00
parent c354113293
commit 8bf7f963e2

View File

@ -18,7 +18,7 @@ L.Handler.MarkerDrag = L.Handler.extend({
dragstart: this._onDragStart,
drag: this._onDrag,
dragend: this._onDragEnd
}).enable();
}, this).enable();
L.DomUtil.addClass(icon, 'leaflet-marker-draggable');
},
@ -28,7 +28,7 @@ L.Handler.MarkerDrag = L.Handler.extend({
dragstart: this._onDragStart,
drag: this._onDrag,
dragend: this._onDragEnd
}).disable();
}, this).disable();
L.DomUtil.removeClass(this._marker._icon, 'leaflet-marker-draggable');
},