]> source.dussan.org Git - svg.js.git/commitdiff
Calling after() on stop(fulfill)
authorwout <wout@impinc.co.uk>
Tue, 10 Jun 2014 12:32:44 +0000 (14:32 +0200)
committerwout <wout@impinc.co.uk>
Tue, 10 Jun 2014 12:32:44 +0000 (14:32 +0200)
src/fx.js

index 24b992e4a54d796b068a6edbcd05e6152b15f687..2b983c3a25be5a218cd6ab39649ad5747353ed54 100755 (executable)
--- 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)