[Pkg-javascript-commits] [leaflet-markercluster] 454/479: Fix code for unit tests, refs #275

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:01:07 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 5a8872a0abba67ca791cc34d6600bc9144af412b
Author: danzel <danzel at localhost.geek.nz>
Date:   Tue Dec 17 10:20:13 2013 +1300

    Fix code for unit tests, refs #275
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index c1d5eef..313d8e2 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -601,7 +601,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 		}
 
     // Focus the map again for keyboard users.
-		if (e.originalEvent.keyCode === 13) {
+		if (e.originalEvent && e.originalEvent.keyCode === 13) {
 			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