aboutsummaryrefslogtreecommitdiffstats
path: root/src/fx.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/fx.js')
-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)