[Pkg-javascript-commits] [leaflet-markercluster] 165/219: Improved naming of _checkBoundsMaxLat

Jonas Smedegaard dr at jones.dk
Sat May 7 09:39:31 UTC 2016


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

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

commit d76e9a4676a28fc53d42c2f9c2883c019a8e9d7e
Author: ghybs <ghybs1 at gmail.com>
Date:   Sun Oct 25 14:26:47 2015 +0400

    Improved naming of _checkBoundsMaxLat
    
    Changed from _checkBounds to more descriptive _checkBoundsMaxLat.
---
 spec/suites/removeOutsideVisibleBoundsSpec.js | 2 +-
 src/MarkerClusterGroup.js                     | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/spec/suites/removeOutsideVisibleBoundsSpec.js b/spec/suites/removeOutsideVisibleBoundsSpec.js
index e2999d9..a9ce90f 100644
--- a/spec/suites/removeOutsideVisibleBoundsSpec.js
+++ b/spec/suites/removeOutsideVisibleBoundsSpec.js
@@ -129,7 +129,7 @@ describe('Option removeOutsideVisibleBounds', function () {
 
 
 	// Following tests need markers at very high latitude.
-	// They test the _checkBounds method against the default Web/Spherical Mercator projection maximum latitude (85.0511287798).
+	// They test the _checkBoundsMaxLat method against the default Web/Spherical Mercator projection maximum latitude (85.0511287798).
 	// The actual map view should be '-1.0986328125,84.92929204957956,1.0986328125,85.11983467698401'
 	// The expdanded bounds without correction should be '-3.2958984375,84.7387494221751,3.2958984375,85.31037730438847'
 	var latLngsMaxLatDefault = [
diff --git a/src/MarkerClusterGroup.js b/src/MarkerClusterGroup.js
index e950f14..744b823 100644
--- a/src/MarkerClusterGroup.js
+++ b/src/MarkerClusterGroup.js
@@ -922,10 +922,10 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 		if (!this.options.removeOutsideVisibleBounds) {
 			return this._mapBoundsInfinite;
 		} else if (L.Browser.mobile) {
-			return this._checkBounds(this._map.getBounds());
+			return this._checkBoundsMaxLat(this._map.getBounds());
 		}
 
-		return this._checkBounds(this._map.getBounds().pad(1)); // Padding expands the bounds by its own dimensions but scaled with the given factor.
+		return this._checkBoundsMaxLat(this._map.getBounds().pad(1)); // Padding expands the bounds by its own dimensions but scaled with the given factor.
 	},
 
 	/**
@@ -938,7 +938,7 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
 	 * @returns {L.LatLngBounds}
 	 * @private
 	 */
-	_checkBounds: function (bounds) {
+	_checkBoundsMaxLat: function (bounds) {
 		var maxLat = this._maxLat;
 
 		if (maxLat !== undefined) {

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