[Pkg-javascript-commits] [leaflet-markercluster] 97/219: remove duplicate _arraySplice

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:15 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 a6a897670cf3645367e5fa248377f62d5538f361
Author: Egon Steiner <es at intermaps.com>
Date:   Tue Sep 22 09:55:55 2015 +0200

    remove duplicate _arraySplice
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 2117c7a..ea4460e 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -260,7 +260,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 				m = layersArray[i];
 				this._arraySplice(this._needsClustering, m);
 				npg.removeLayer(m);
-				if (!this._arraySplice(this._needsClustering, m) && this.hasLayer(m)) {
+				if (this.hasLayer(m)) {
 					this._needsRemoving.push(m);
 				}
 			}

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