[Pkg-javascript-commits] [leaflet-markercluster] 442/479: map._container is an element so we can call focus() on that directly

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:01:06 UTC 2014


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

js pushed a commit to branch master
in repository leaflet-markercluster.

commit 952d41717aeda4baaa21a8c715fd1ae0815d062b
Author: Adam Bramley <adam at catalyst.net.nz>
Date:   Wed Nov 20 15:13:11 2013 +1300

    map._container is an element so we can call focus() on that directly
---
 dist/leaflet.markercluster-src.js | 2 +-
 dist/leaflet.markercluster.js     | 2 +-
 src/MarkerClusterGroup.js         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dist/leaflet.markercluster-src.js b/dist/leaflet.markercluster-src.js
index a9b6831..4caaff8 100644
--- a/dist/leaflet.markercluster-src.js
+++ b/dist/leaflet.markercluster-src.js
@@ -607,7 +607,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 
     // Focus the map again for keyboard users.
 		if (typeof e.originalEvent.keyCode !== 'undefined' && e.originalEvent.keyCode === 13) {
-			document.getElementById(map._container.id).focus();
+			map._container.focus();
 		}
 	},
 
diff --git a/dist/leaflet.markercluster.js b/dist/leaflet.markercluster.js
index 3d1044b..31f0adf 100644
--- a/dist/leaflet.markercluster.js
+++ b/dist/leaflet.markercluster.js
@@ -3,4 +3,4 @@
  https://github.com/Leaflet/Leaflet.markercluster
  (c) 2012-2013, Dave Leaver, smartrak
 */
-!function(t,e){L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureG [...]
\ No newline at end of file
+!function(t,e){L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,polygonOptions:{}},initialize:function(t){L.Util.setOptions(this,t),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureG [...]
\ No newline at end of file
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 92149a6..b32197e 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -602,7 +602,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 
     // Focus the map again for keyboard users.
 		if (typeof e.originalEvent.keyCode !== 'undefined' && e.originalEvent.keyCode === 13) {
-			document.getElementById(map._container.id).focus();
+			map._container.focus();
 		}
 	},
 

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



More information about the Pkg-javascript-commits mailing list