From c5905fc793f7e23359539bcb3b8cda7e4a6a81a4 Mon Sep 17 00:00:00 2001 From: vird Date: Wed, 28 May 2014 15:50:21 +0300 Subject: .animation() .stop() now fires .after() if present --- src/fx.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/fx.js') diff --git a/src/fx.js b/src/fx.js index 424c952..24b992e 100755 --- a/src/fx.js +++ b/src/fx.js @@ -368,8 +368,10 @@ SVG.FX = SVG.invent({ , stop: function(fulfill) { /* fulfill animation */ if (fulfill === true) { - this.animate(0) - + this.animate(0); + if (this._after) { + this._after.apply(this); + } } else { /* stop current animation */ clearTimeout(this.timeout) @@ -452,4 +454,4 @@ SVG.FX = SVG.invent({ } } -}) \ No newline at end of file +}) -- cgit v1.2.3