[Pkg-javascript-commits] [leaflet-markercluster] 04/31: Remove unnecessary undefined check, this is set to null by default.
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 2541879996aa5a6d222eae5743f72ff8dc0e1fb1
Author: Dave Leaver <danzel at localhost.geek.nz>
Date: Thu Apr 13 13:07:23 2017 +1200
Remove unnecessary undefined check, this is set to null by default.
---
src/MarkerClusterGroup.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index 8f48762..bca2d2a 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 !== null && typeof this.options.disableClusteringAtZoom !== "undefined") {
+ 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