From e6de46b9d3bcb621e4d7d2bace1deaa23c5b55e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Junod?= Date: Mon, 14 Jun 2010 06:13:35 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Tween.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/OpenLayers/Tween.js b/lib/OpenLayers/Tween.js index f799df3c72..a23deba48a 100644 --- a/lib/OpenLayers/Tween.js +++ b/lib/OpenLayers/Tween.js @@ -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(); } },