[Pkg-javascript-commits] [leaflet-markercluster] 38/128: Missing final blank line in AddLayersSpec

Jonas Smedegaard dr at jones.dk
Sun Apr 16 06:26:01 UTC 2017


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

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

commit 01467aa416a865dffe9092abf3dacafd0ae5474d
Author: ghybs <ghybs1 at gmail.com>
Date:   Thu Jan 14 11:25:52 2016 +0400

    Missing final blank line in AddLayersSpec
    
    Also added comment on side effets of new addLayers scheme to manage nested Layer Groups: it may modify the input array.
---
 spec/suites/AddLayersSpec.js | 2 +-
 src/MarkerClusterGroup.js    | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/spec/suites/AddLayersSpec.js b/spec/suites/AddLayersSpec.js
index 6da479d..95ed285 100644
--- a/spec/suites/AddLayersSpec.js
+++ b/spec/suites/AddLayersSpec.js
@@ -156,4 +156,4 @@
 	map.remove();
 	document.body.removeChild(div);
 
-});
\ No newline at end of file
+});
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 60dd443..1b3766d 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -205,7 +205,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 					m = layersArray[offset];
 
 					// Group of layers, append children to layersArray and skip.
-					// Side effect: total increases, so chunkProgress ratio jumps backward.
+					// Side effects:
+					// - Total increases, so chunkProgress ratio jumps backward.
+					// - Input array is modified.
 					if (m instanceof L.LayerGroup) {
 						this._extractNonGroupLayers(m, layersArray);
 						l = layersArray.length;

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