summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWout <wout@impinc.co.uk>2014-06-10 14:24:45 +0200
committerWout <wout@impinc.co.uk>2014-06-10 14:24:45 +0200
commite9425f13cf3ccb8fa9387d8c5d12a3773070c827 (patch)
tree5293b3d667b95a31989936e04bb62c58cfb9e1cf /src
parent7e6b5edfdd08dd28120442a2c3528c3d94c346c3 (diff)
parentc5905fc793f7e23359539bcb3b8cda7e4a6a81a4 (diff)
downloadsvg.js-e9425f13cf3ccb8fa9387d8c5d12a3773070c827.tar.gz
svg.js-e9425f13cf3ccb8fa9387d8c5d12a3773070c827.zip
Merge pull request #192 from vird/patch-1
.animation() .stop(true) now fires .after() callback if present
Diffstat (limited to 'src')
-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
+})