From: Preston Tighe Date: Fri, 11 Nov 2016 23:25:03 +0000 (-0600) Subject: Fix going down prototype chain X-Git-Tag: 2.3.7~21 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3176d7000f6be5e94d26624d611bd51ff371b171;p=svg.js.git 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. --- 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]