[Pkg-javascript-commits] [leaflet-markercluster] 228/479: woops, map variable

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:00:33 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 d4417130eb69f03c0d771118f0734425d3ac263c
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Sep 12 11:17:24 2012 +1200

    woops, map variable
---
 src/MarkerCluster.Spiderfier.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index f1b87c5..85dd659 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -310,7 +310,7 @@ L.MarkerClusterGroup.include({
 	_spiderfierOnAdd: function () {
 		this._map.on('click', this._unspiderfyWrapper, this);
 
-		if (map.options.zoomAnimation) {
+		if (this._map.options.zoomAnimation) {
 			this._map.on('zoomstart', this._unspiderfyZoomStart, this);
 		} else {
 			//Browsers without zoomAnimation don't fire zoomstart

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