diff options
author | Rémi Tétreault <tetreault.remi@gmail.com> | 2017-04-30 15:14:11 -0400 |
---|---|---|
committer | Rémi Tétreault <tetreault.remi@gmail.com> | 2017-04-30 15:14:11 -0400 |
commit | 0ba5e1f394911c66441ea770e09338e82fb6ef49 (patch) | |
tree | df6c225df194a9292803ca2d57b98debfb8368da /src | |
parent | 4204181064ab17c82fc0cde227a84e31512d6973 (diff) | |
download | svg.js-0ba5e1f394911c66441ea770e09338e82fb6ef49.tar.gz svg.js-0ba5e1f394911c66441ea770e09338e82fb6ef49.zip |
fixed `SVG.FX.once` so that it add its callback on the last situation instead of the current one
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -660,10 +660,10 @@ SVG.FX = SVG.invent({ // adds an once-callback which is called at a specific position and never again , once: function(pos, fn, isEased){ + var c = this.last() + if(!isEased) pos = c.ease(pos) - if(!isEased)pos = this.situation.ease(pos) - - this.situation.once[pos] = fn + c.once[pos] = fn return this } |