[Pkg-javascript-commits] [leaflet-markercluster] 171/479: Fix for jshint
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:26 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 b392fb791340854104ff9f25a21312ff49251421
Author: danzel <danzel at localhost.geek.nz>
Date: Mon Aug 20 10:19:28 2012 +1200
Fix for jshint
---
src/MarkerCluster.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/MarkerCluster.js b/src/MarkerCluster.js
index 3d7500b..b0fa84a 100644
--- a/src/MarkerCluster.js
+++ b/src/MarkerCluster.js
@@ -111,6 +111,7 @@ L.MarkerCluster = L.Marker.extend({
map = group._map,
maxClusterRadius = group.options.maxClusterRadius,
result = false,
+ sqDist = this._group._sqDist,
i;
for (i = this._childClusters.length - 1; i >= 0; i--) {
@@ -132,8 +133,7 @@ L.MarkerCluster = L.Marker.extend({
if (zoom + 1 !== group.options.disableClusteringAtZoom) {
//Add to ourself instead
- var layerPos = map.project(layer.getLatLng(), zoom + 1),
- sqDist = this._group._sqDist;
+ var layerPos = map.project(layer.getLatLng(), zoom + 1);
//var distanceGrid = new L.DistanceGrid(maxClusterRadius);
for (i = this._markers.length - 1; i >= 0; i--) {
--
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