diff options
author | Tamás <t.kiss@poonk.net> | 2016-06-23 17:40:21 +0200 |
---|---|---|
committer | Tamás <t.kiss@poonk.net> | 2016-06-23 17:40:21 +0200 |
commit | bb80329efb0ea3aa549d6faaf6a468656a8dcad8 (patch) | |
tree | c27e6ef721235dba429c82e42816ddaf7bbb4ac9 /src | |
parent | 399dd4a2b4a381a3652695a3ab31f7da72100110 (diff) | |
download | svg.js-bb80329efb0ea3aa549d6faaf6a468656a8dcad8.tar.gz svg.js-bb80329efb0ea3aa549d6faaf6a468656a8dcad8.zip |
Fix broken animations, if using polyfills for es6/7 proposals (in this case String.at())
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -543,7 +543,7 @@ SVG.FX = SVG.invent({ for(i in s.animations){ at = [].concat(s.animations[i]).map(function(el){ - return el.at ? el.at(s.ease(self.pos), self.pos) : el + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el }) target[i].apply(target, at) @@ -554,7 +554,7 @@ SVG.FX = SVG.invent({ for(i in s.attrs){ at = [i].concat(s.attrs[i]).map(function(el){ - return el.at ? el.at(s.ease(self.pos), self.pos) : el + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el }) target.attr.apply(target, at) @@ -565,7 +565,7 @@ SVG.FX = SVG.invent({ for(i in s.styles){ at = [i].concat(s.styles[i]).map(function(el){ - return el.at ? el.at(s.ease(self.pos), self.pos) : el + return typeof el !== 'string' && el.at ? el.at(s.ease(self.pos), self.pos) : el }) target.style.apply(target, at) |