From 5a8872a0abba67ca791cc34d6600bc9144af412b Mon Sep 17 00:00:00 2001 From: danzel Date: Tue, 17 Dec 2013 10:20:13 +1300 Subject: [PATCH] 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 c1d5eef99..313d8e29a 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(); } },