[Pkg-javascript-commits] [leaflet-markercluster] 457/479: Fix broken tests

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 d525b153f428f7b77f424c508b9e33611916e8a5
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Dec 18 10:32:11 2013 +1300

    Fix broken tests
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 476b8e0..2b860af 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -560,7 +560,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 	_propagateEvent: function (e) {
 		if (e.layer instanceof L.MarkerCluster) {
 			//Prevent multiple clustermouseover/off events if the icon is made up of stacked divs (Doesn't work in ie <= 8, no relatedTarget)
-			if (this._isOrIsParent(e.layer._icon, e.originalEvent.relatedTarget)) {
+			if (e.originalEvent && this._isOrIsParent(e.layer._icon, e.originalEvent.relatedTarget)) {
 				return;
 			}
 			e.type = 'cluster' + e.type;

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