aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2016-11-03 10:57:07 +0100
committerGitHub <noreply@github.com>2016-11-03 10:57:07 +0100
commit6361591c3873375994433c5b3f2d42485e29712e (patch)
tree6f1aad76ed42abe035a4a7b6efdea7552ac92378 /src
parent083f9e16bdced2c10325c46f7f51e85b6e5f0158 (diff)
parentbb80329efb0ea3aa549d6faaf6a468656a8dcad8 (diff)
downloadsvg.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.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fx.js b/src/fx.js
index 0746ba1..63d0a50 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -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)