From 3176d7000f6be5e94d26624d611bd51ff371b171 Mon Sep 17 00:00:00 2001 From: Preston Tighe Date: Fri, 11 Nov 2016 17:25:03 -0600 Subject: [PATCH] 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. --- src/fx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] -- 2.39.5