aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)