From ed08a5b1dc1df7930c9cd0449cd81e2818846d21 Mon Sep 17 00:00:00 2001 From: snkashis Date: Thu, 28 Feb 2013 10:46:54 +0000 Subject: [PATCH] call disable, not removeHooks --- src/layer/marker/Marker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layer/marker/Marker.js b/src/layer/marker/Marker.js index 64bb44cd..5c0687f0 100644 --- a/src/layer/marker/Marker.js +++ b/src/layer/marker/Marker.js @@ -42,7 +42,7 @@ L.Marker = L.Class.extend({ onRemove: function (map) { if (this.dragging) { - this.dragging.removeHooks(); + this.dragging.disable(); } this._removeIcon();