summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPreston Tighe <preston_tighe@yahoo.com>2016-11-11 17:25:03 -0600
committerGitHub <noreply@github.com>2016-11-11 17:25:03 -0600
commit3176d7000f6be5e94d26624d611bd51ff371b171 (patch)
tree67417845773a76857d2985197b92a2a8aa4dbf61
parentf80cd95ee9a086ce04c1a184ffa6a4c9429c4975 (diff)
downloadsvg.js-3176d7000f6be5e94d26624d611bd51ff371b171.tar.gz
svg.js-3176d7000f6be5e94d26624d611bd51ff371b171.zip
Fix going down prototype chain
This fixed the a.undo is not a function error. The for loop was going down into the array's prototype chain.
-rw-r--r--src/fx.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fx.js b/src/fx.js
index d70e245..4011b85 100644
--- a/src/fx.js
+++ b/src/fx.js
@@ -633,7 +633,7 @@ SVG.FX = SVG.invent({
// get inital initialTransformation
at = s.initialTransformation
- for(i in s.transforms){
+ for(i = 0 ; i < s.transforms.length ; i++){
// get next transformation in chain
var a = s.transforms[i]