[Pkg-javascript-commits] [leaflet-markercluster] 367/479: Another _noHas hack to fix removing layers.

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

    Another _noHas hack to fix removing layers.
---
 src/MarkerClusterGroup.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 6458a01..cfa88c3 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -448,7 +448,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 					//Cluster is currently on the map, need to put the marker on the map instead
 					L.FeatureGroup.prototype.removeLayer.call(this, cluster);
 					if (!dontUpdateMap) {
+						otherMarker._noHas = true;
 						L.FeatureGroup.prototype.addLayer.call(this, otherMarker);
+						delete otherMarker._noHas;
 					}
 				}
 			} else {

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