[Pkg-javascript-commits] [leaflet] 118/301: fix zoom control not always reflecting disabled state initially, close #2083

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:45 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 8a53afc34e3f0418390caa6160f299078a9a15f2
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Wed Oct 9 22:21:04 2013 +0300

    fix zoom control not always reflecting disabled state initially, close #2083
---
 src/control/Control.Zoom.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/control/Control.Zoom.js b/src/control/Control.Zoom.js
index 43f2404..d87b2de 100644
--- a/src/control/Control.Zoom.js
+++ b/src/control/Control.Zoom.js
@@ -24,6 +24,7 @@ L.Control.Zoom = L.Control.extend({
 		        this.options.zoomOutText, this.options.zoomOutTitle,
 		        zoomName + '-out', container, this._zoomOut, this);
 
+		this._updateDisabled();
 		map.on('zoomend zoomlevelschange', this._updateDisabled, this);
 
 		return container;

-- 
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