diff options
author | vird <virdvip@gmail.com> | 2014-05-28 15:50:21 +0300 |
---|---|---|
committer | vird <virdvip@gmail.com> | 2014-05-28 15:50:21 +0300 |
commit | c5905fc793f7e23359539bcb3b8cda7e4a6a81a4 (patch) | |
tree | f1481a01485984b0cb4e59ee93f4e36832843252 | |
parent | 8e44d115af4907276cb23567dc2d2a10d0efdf2f (diff) | |
download | svg.js-c5905fc793f7e23359539bcb3b8cda7e4a6a81a4.tar.gz svg.js-c5905fc793f7e23359539bcb3b8cda7e4a6a81a4.zip |
.animation() .stop() now fires .after() if present
-rwxr-xr-x | src/fx.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 +}) |