call stop instead of duplicate the code. r=elemoine (closes #2675)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@10392 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Frédéric Junod
2010-06-14 06:13:35 +00:00
parent f42bbd1dfc
commit e6de46b9d3

View File

@@ -148,12 +148,7 @@ OpenLayers.Tween = OpenLayers.Class({
}
if (this.time > this.duration) {
if (this.callbacks && this.callbacks.done) {
this.callbacks.done.call(this, this.finish);
this.playing = false;
}
window.clearInterval(this.interval);
this.interval = null;
this.stop();
}
},