[Pkg-javascript-commits] [leaflet] 167/301: Refocus on the map after a +/- button is clicked.

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:49 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit f133d9a1bd67a716e6d135ec2fbcc520208bec4f
Author: jacobtoye <jacob.toye at gmail.com>
Date:   Mon Nov 4 10:39:04 2013 +1300

    Refocus on the map after a +/- button is clicked.
---
 src/control/Control.Zoom.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/control/Control.Zoom.js b/src/control/Control.Zoom.js
index d87b2de..5acfc56 100644
--- a/src/control/Control.Zoom.js
+++ b/src/control/Control.Zoom.js
@@ -55,7 +55,8 @@ L.Control.Zoom = L.Control.extend({
 		    .on(link, 'mousedown', stop)
 		    .on(link, 'dblclick', stop)
 		    .on(link, 'click', L.DomEvent.preventDefault)
-		    .on(link, 'click', fn, context);
+		    .on(link, 'click', fn, context)
+		    .on(link, 'click', this._refocusOnMap, context);
 
 		return link;
 	},

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list