[Pkg-javascript-commits] [leaflet-markercluster] 57/479: Rename _recursivelyAddChildMarker -> _recursivelyAddLayer

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:09 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 eb94ab1959f7b00c292eee46472d8b86679775d4
Author: danzel <danzel at localhost.geek.nz>
Date:   Fri Jul 20 11:11:28 2012 +1200

    Rename _recursivelyAddChildMarker -> _recursivelyAddLayer
---
 src/MarkerCluster.js      | 6 +++---
 src/MarkerClusterGroup.js | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/MarkerCluster.js b/src/MarkerCluster.js
index 039ab81..769bf75 100644
--- a/src/MarkerCluster.js
+++ b/src/MarkerCluster.js
@@ -77,7 +77,7 @@ L.MarkerCluster = L.Marker.extend({
 	},
 
 	//layer: The layer to try add
-	_recursivelyAddChildMarker: function (layer) {
+	_recursivelyAddLayer: function (layer) {
 		var childReturn = null;
 
 		if (!this._haveGeneratedChildClusters) {
@@ -87,7 +87,7 @@ L.MarkerCluster = L.Marker.extend({
 			for (var i = this._childClusters.length - 1; i >= 0; i--) {
 				var c = this._childClusters[i];
 				if (c._bounds.contains(layer.getLatLng())) { //TODO: Use a layer distance calculation
-					childReturn = c._recursivelyAddChildMarker(layer);
+					childReturn = c._recursivelyAddLayer(layer);
 					addedToChild = true;
 					break;
 				}
@@ -110,7 +110,7 @@ L.MarkerCluster = L.Marker.extend({
 
 	//Removes the given node from this marker cluster (or its child as required)
 	//Returns true if it (or a child cluster) removes the marker
-	_recursivelyRemoveChildMarker: function(layer) {
+	_recursivelyRemoveLayer: function (layer) {
 		var markers = this._markers,
 			childClusters = this._childClusters,
 			i;
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index bde6b9f..dc471a0 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -135,7 +135,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 		//If we have already clustered we'll need to add this one to a cluster
 		L.FeatureGroup.prototype.addLayer.call(this, layer); //TODO: If not animated maybe don't add it yet
 
-		position = this._topClusterLevel._recursivelyAddChildMarker(layer);
+		position = this._topClusterLevel._recursivelyAddLayer(layer);
 
 		if (position) {
 			//TODO Tidy up

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