[Pkg-javascript-commits] [leaflet] 169/301: minor cleanup

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 399e304bb274ecb33eb71be07001a40f815c390d
Author: Vladimir Agafonkin <agafonkin at gmail.com>
Date:   Mon Nov 4 13:15:15 2013 +0200

    minor cleanup
---
 src/control/Control.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/control/Control.js b/src/control/Control.js
index 195b446..0e65cf5 100644
--- a/src/control/Control.js
+++ b/src/control/Control.js
@@ -69,10 +69,8 @@ L.Control = L.Class.extend({
 	},
 
 	_refocusOnMap: function () {
-		var map = this._map;
-
-		if (map) {
-			map.getContainer().focus();
+		if (this._map) {
+			this._map.getContainer().focus();
 		}
 	}
 });

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