diff --git a/src/L.Control.MousePosition.js b/src/L.Control.MousePosition.js index ce92b38..87cade4 100644 --- a/src/L.Control.MousePosition.js +++ b/src/L.Control.MousePosition.js @@ -24,7 +24,7 @@ L.Control.MousePosition = L.Control.extend({ }, onRemove: function (map) { - map.off('mousemove', this._onMouseMove) + map.off('mousemove', this._onMouseMove, this) }, getLatLng: function() {