[Pkg-javascript-commits] [leaflet-markercluster] 357/479: More _noHas hacks. Will work around this properly at some stage, fixes #60 again.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:51 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 1440b56b4e5572397dc749f5dd6b3304a0879796
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Jun 14 14:15:34 2013 +1200

    More _noHas hacks. Will work around this properly at some stage, fixes #60 again.
---
 src/MarkerClusterGroup.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index a46b1b7..a78d07a 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -714,7 +714,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 	//Shared animation code
 	_animationAddLayerNonAnimated: function (layer, newCluster) {
 		if (newCluster === layer) {
+			layer._noHas = true;
 			L.FeatureGroup.prototype.addLayer.call(this, layer);
+			delete layer._noHas;
 		} else if (newCluster._childCount === 2) {
 			newCluster._addToMap();
 
@@ -862,7 +864,9 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
 	_animationAddLayer: function (layer, newCluster) {
 		var me = this;
 
+		layer._noHas = true;
 		L.FeatureGroup.prototype.addLayer.call(this, layer);
+		delete layer._noHas;
 		if (newCluster !== layer) {
 			if (newCluster._childCount > 2) { //Was already a cluster
 

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