nullify panTween on destroy. r=bartvde (closes #2673)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10385 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-06-11 12:08:34 +00:00
parent 71482163cf
commit 7177144816

View File

@@ -622,8 +622,9 @@ OpenLayers.Map = OpenLayers.Class({
} }
// make sure panning doesn't continue after destruction // make sure panning doesn't continue after destruction
if(this.panTween && this.panTween.playing) { if(this.panTween) {
this.panTween.stop(); this.panTween.stop();
this.panTween = null;
} }
// map has been destroyed. dont do it again! // map has been destroyed. dont do it again!