aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-06-10 14:32:44 +0200
committerwout <wout@impinc.co.uk>2014-06-10 14:32:44 +0200
commit791f4368403571d5e824d91f3562c63baae356a8 (patch)
treeb24e515f78aea88af44c5230ee66a4f0500596fd /src
parente9425f13cf3ccb8fa9387d8c5d12a3773070c827 (diff)
downloadsvg.js-791f4368403571d5e824d91f3562c63baae356a8.tar.gz
svg.js-791f4368403571d5e824d91f3562c63baae356a8.zip
Calling after() on stop(fulfill)
Diffstat (limited to 'src')
-rwxr-xr-xsrc/fx.js10
1 files changed, 6 insertions, 4 deletions
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)