aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvird <virdvip@gmail.com>2014-05-28 15:50:21 +0300
committervird <virdvip@gmail.com>2014-05-28 15:50:21 +0300
commitc5905fc793f7e23359539bcb3b8cda7e4a6a81a4 (patch)
treef1481a01485984b0cb4e59ee93f4e36832843252
parent8e44d115af4907276cb23567dc2d2a10d0efdf2f (diff)
downloadsvg.js-c5905fc793f7e23359539bcb3b8cda7e4a6a81a4.tar.gz
svg.js-c5905fc793f7e23359539bcb3b8cda7e4a6a81a4.zip
.animation() .stop() now fires .after() if present
-rwxr-xr-xsrc/fx.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fx.js b/src/fx.js
index 424c952..24b992e 100755
--- a/src/fx.js
+++ b/src/fx.js
@@ -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
+})