[Pkg-javascript-commits] [leaflet] 166/301: Add method to controls to refocus on the map container.
Jonas Smedegaard
js at moszumanska.debian.org
Mon Jan 27 22:22:48 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 112f4d6e02656e9fa260f2f2bdd55e77afa08e2f
Author: jacobtoye <jacob.toye at gmail.com>
Date: Mon Nov 4 10:38:25 2013 +1300
Add method to controls to refocus on the map container.
---
src/control/Control.js | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/control/Control.js b/src/control/Control.js
index 5939fe5..195b446 100644
--- a/src/control/Control.js
+++ b/src/control/Control.js
@@ -66,6 +66,14 @@ L.Control = L.Class.extend({
}
return this;
+ },
+
+ _refocusOnMap: function () {
+ var map = this._map;
+
+ if (map) {
+ 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