diff options
author | wout <wout@impinc.co.uk> | 2014-06-10 14:32:44 +0200 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2014-06-10 14:32:44 +0200 |
commit | 791f4368403571d5e824d91f3562c63baae356a8 (patch) | |
tree | b24e515f78aea88af44c5230ee66a4f0500596fd /src | |
parent | e9425f13cf3ccb8fa9387d8c5d12a3773070c827 (diff) | |
download | svg.js-791f4368403571d5e824d91f3562c63baae356a8.tar.gz svg.js-791f4368403571d5e824d91f3562c63baae356a8.zip |
Calling after() on stop(fulfill)
Diffstat (limited to 'src')
-rwxr-xr-x | src/fx.js | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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) |