[Pkg-javascript-commits] [leaflet-markercluster] 55/219: Provide more detailed context information on the spiderfied event

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:11 UTC 2016


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

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

commit 90fbaca198904dc2c079d775cf62c74d4fddc531
Author: evanvosberg <evanvosberg at inext.me>
Date:   Thu Nov 13 13:02:52 2014 +0100

    Provide more detailed context information on the spiderfied event
---
 src/MarkerCluster.Spiderfier.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index ead03b4..72cacef 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -142,7 +142,10 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 			m._spiderLeg = leg;
 		}
 		this.setOpacity(0.3);
-		group.fire('spiderfied');
+		group.fire('spiderfied', {
+            cluster: this,
+            markers: childMarkers
+        });
 	},
 
 	_animationUnspiderfy: function () {
@@ -256,7 +259,10 @@ L.MarkerCluster.include(!L.DomUtil.TRANSITION ? {
 
 		setTimeout(function () {
 			group._animationEnd();
-			group.fire('spiderfied');
+			group.fire('spiderfied', {
+                cluster: me,
+                markers: childMarkers
+            });
 		}, 200);
 	},
 

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