From 791f4368403571d5e824d91f3562c63baae356a8 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 10 Jun 2014 14:32:44 +0200 Subject: Calling after() on stop(fulfill) --- src/fx.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fx.js b/src/fx.js index 24b992e..2b983c3 100755 --- a/src/fx.js +++ b/src/fx.js @@ -368,10 +368,12 @@ SVG.FX = SVG.invent({ , stop: function(fulfill) { /* fulfill animation */ if (fulfill === true) { - this.animate(0); - if (this._after) { - this._after.apply(this); - } + + this.animate(0) + + if (this._after) + this._after.apply(this.target, [this]) + } else { /* stop current animation */ clearTimeout(this.timeout) -- cgit v1.2.3