[Pkg-javascript-commits] [leaflet-markercluster] 191/219: Added listener de-binding on remove
Jonas Smedegaard
dr at jones.dk
Sat May 7 09:39:34 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 e894b31fc3f0a4e119efda656ca67dd9b1f385d2
Author: ghybs <ghybs1 at gmail.com>
Date: Fri Nov 27 15:34:13 2015 +0400
Added listener de-binding on remove
_noanimationUnspiderfy was not de-bound from map "zoomend" event when group is removed from map.
---
src/MarkerCluster.Spiderfier.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/MarkerCluster.Spiderfier.js b/src/MarkerCluster.Spiderfier.js
index 73fcafe..a980a21 100644
--- a/src/MarkerCluster.Spiderfier.js
+++ b/src/MarkerCluster.Spiderfier.js
@@ -361,6 +361,7 @@ L.MarkerClusterGroup.include({
this._map.off('click', this._unspiderfyWrapper, this);
this._map.off('zoomstart', this._unspiderfyZoomStart, this);
this._map.off('zoomanim', this._unspiderfyZoomAnim, this);
+ this._map.off('zoomend', this._noanimationUnspiderfy, this);
//Ensure that markers are back where they should be
// Use no animation to avoid a sticky leaflet-cluster-anim class on mapPane
--
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