diff options
author | Wout <wout@impinc.co.uk> | 2014-06-10 14:24:45 +0200 |
---|---|---|
committer | Wout <wout@impinc.co.uk> | 2014-06-10 14:24:45 +0200 |
commit | e9425f13cf3ccb8fa9387d8c5d12a3773070c827 (patch) | |
tree | 5293b3d667b95a31989936e04bb62c58cfb9e1cf /src | |
parent | 7e6b5edfdd08dd28120442a2c3528c3d94c346c3 (diff) | |
parent | c5905fc793f7e23359539bcb3b8cda7e4a6a81a4 (diff) | |
download | svg.js-e9425f13cf3ccb8fa9387d8c5d12a3773070c827.tar.gz svg.js-e9425f13cf3ccb8fa9387d8c5d12a3773070c827.zip |
Merge pull request #192 from vird/patch-1
.animation() .stop(true) now fires .after() callback if present
Diffstat (limited to 'src')
-rwxr-xr-x | src/fx.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 +}) |