call disable, not removeHooks

This commit is contained in:
snkashis 2013-02-28 10:46:54 +00:00
parent 95c73a3d77
commit ed08a5b1dc

View File

@ -42,7 +42,7 @@ L.Marker = L.Class.extend({
onRemove: function (map) { onRemove: function (map) {
if (this.dragging) { if (this.dragging) {
this.dragging.removeHooks(); this.dragging.disable();
} }
this._removeIcon(); this._removeIcon();