Update build

This commit is contained in:
danzel
2012-08-27 13:33:03 +12:00
parent 02a869bf60
commit 863b07ea42
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -134,6 +134,9 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
this._map.off('zoomend', this._zoomEnd, this);
this._map.off('moveend', this._moveEnd, this);
//In case we are in a cluster animation
this._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');
if (this._spiderfierOnRemove) { //TODO FIXME: Not sure how to have spiderfier add something on here nicely
this._spiderfierOnRemove();
}
@@ -427,7 +430,9 @@ L.MarkerClusterGroup.include(!L.DomUtil.TRANSITION ? {
this._inZoomAnimation++;
},
_animationEnd: function () {
this._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');
if (this._map) {
this._map._mapPane.className = this._map._mapPane.className.replace(' leaflet-cluster-anim', '');
}
this._inZoomAnimation--;
},
_animationZoomIn: function (previousZoomLevel, newZoomLevel) {
+1 -1
View File
File diff suppressed because one or more lines are too long