From 7fb61dad908de6ab224f281507e4f3da239ac948 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Fri, 23 Sep 2011 14:00:35 -0600 Subject: [PATCH] Fix map refernce for _onDragEnd method. --- src/handler/MapDrag.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/handler/MapDrag.js b/src/handler/MapDrag.js index ed016ac6..9cf79f3a 100644 --- a/src/handler/MapDrag.js +++ b/src/handler/MapDrag.js @@ -63,7 +63,7 @@ L.Handler.MapDrag = L.Handler.extend({ }, _onDragEnd: function() { - map.fire('moveend'); - map.fire('dragend'); + this._map.fire('moveend'); + this._map.fire('dragend'); } });