[Pkg-javascript-commits] [leaflet-markercluster] 01/31: Fixed bug where disableClusteringAtZoom being 0 is treated the same as null

Jonas Smedegaard dr at jones.dk
Sun Oct 22 17:29:28 UTC 2017


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

js pushed a commit to annotated tag upstream/1.1.0_dfsg
in repository leaflet-markercluster.

commit b97aa03af7c94170bb0263d26ea2d73e6e973cb5
Author: MrCheeze <fishycheeze at yahoo.ca>
Date:   Tue Apr 11 17:13:08 2017 -0400

    Fixed bug where disableClusteringAtZoom being 0 is treated the same as null
---
 src/MarkerClusterGroup.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index c7479ec..d8132d3 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -933,7 +933,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 			radiusFn = function () { return radius; };
 		}
 
-		if (this.options.disableClusteringAtZoom) {
+		if (this.options.disableClusteringAtZoom != null) {
 			maxZoom = this.options.disableClusteringAtZoom - 1;
 		}
 		this._maxZoom = maxZoom;

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