[Pkg-javascript-commits] [leaflet] 178/301: Comment why this hack exists and improve it with @mourner code :)

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 b7a6f2aebed43ddda15ffb2214c139544ca0f02e
Author: danzel <danzel at localhost.geek.nz>
Date:   Tue Nov 5 10:34:35 2013 +1300

    Comment why this hack exists and improve it with @mourner code :)
---
 src/control/Control.Layers.js | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/control/Control.Layers.js b/src/control/Control.Layers.js
index 11243d5..eb039c0 100644
--- a/src/control/Control.Layers.js
+++ b/src/control/Control.Layers.js
@@ -96,13 +96,9 @@ L.Control.Layers = L.Control.extend({
 			else {
 				L.DomEvent.on(link, 'focus', this._expand, this);
 			}
+			//Work around for Firefox android issue https://github.com/Leaflet/Leaflet/issues/2033
 			L.DomEvent.on(form, 'click', function () {
-				var that = this;
-				setTimeout(function () {
-					//alert('l');
-					
-					that._onInputClick();
-				}, 0);
+				setTimeout(L.bind(this._onInputClick, this), 0);
 			}, this);
 
 			this._map.on('click', this._collapse, this);

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