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:
@@ -622,8 +622,9 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
}
|
||||
|
||||
// make sure panning doesn't continue after destruction
|
||||
if(this.panTween && this.panTween.playing) {
|
||||
if(this.panTween) {
|
||||
this.panTween.stop();
|
||||
this.panTween = null;
|
||||
}
|
||||
|
||||
// map has been destroyed. dont do it again!
|
||||
|
||||
Reference in New Issue
Block a user