diff options
author | Rémi Tétreault <tetreault.remi@gmail.com> | 2016-10-15 02:33:05 -0400 |
---|---|---|
committer | Rémi Tétreault <tetreault.remi@gmail.com> | 2016-10-15 02:33:05 -0400 |
commit | 8cfd7558024f0cc0b22dddbd20c7eae92acb6a52 (patch) | |
tree | 92d625a0828c937734a02ba0b0c417e8f4a6e664 /src | |
parent | 6f4fd728afa6c3b590ae094b5d9e7ed716075b73 (diff) | |
download | svg.js-8cfd7558024f0cc0b22dddbd20c7eae92acb6a52.tar.gz svg.js-8cfd7558024f0cc0b22dddbd20c7eae92acb6a52.zip |
Make SVG.FX.loop modify the last situation instead of the current one
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -341,10 +341,12 @@ SVG.FX = SVG.invent({ } // Make loopable , loop: function(times, reverse) { + var c = this.last() + // store current loop and total loops - this.situation.loop = this.situation.loops = times || true + c.loop = c.loops = times || true - if(reverse) this.last().reversing = true + if(reverse) c.reversing = true return this } @@ -818,4 +820,4 @@ SVG.extend(SVG.FX, { return this } -})
\ No newline at end of file +}) |