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:
@@ -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();
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user