diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-11-03 10:57:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-03 10:57:07 +0100 |
commit | 6361591c3873375994433c5b3f2d42485e29712e (patch) | |
tree | 6f1aad76ed42abe035a4a7b6efdea7552ac92378 /src | |
parent | 083f9e16bdced2c10325c46f7f51e85b6e5f0158 (diff) | |
parent | bb80329efb0ea3aa549d6faaf6a468656a8dcad8 (diff) | |
download | svg.js-6361591c3873375994433c5b3f2d42485e29712e.tar.gz svg.js-6361591c3873375994433c5b3f2d42485e29712e.zip |
Merge pull request #504 from tkiss/animations_es6-7_fix
Fix broken animations, if using polyfills for es6/7 proposals
Diffstat (limited to 'src')
-rw-r--r-- | src/fx.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -605,7 +605,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) @@ -616,7 +616,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) @@ -627,7 +627,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) |