aboutsummaryrefslogtreecommitdiffstats
path: root/src/pointarray.js
diff options
context:
space:
mode:
authordotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-12 12:27:06 -0200
committerdotnetCarpenter <jon.ronnenberg@gmail.com>2016-10-12 12:53:54 -0200
commit770fc4d7a8c512d387aa50dd81e60fe49531043d (patch)
tree9197afc083944acf729303fe23fa8e1d0df7e4a8 /src/pointarray.js
parent4f8edd919ab159f51d0324b0f0051472055e5da6 (diff)
downloadsvg.js-770fc4d7a8c512d387aa50dd81e60fe49531043d.tar.gz
svg.js-770fc4d7a8c512d387aa50dd81e60fe49531043d.zip
sorry the last commit was nonsens. This one is proper tested.
Diffstat (limited to 'src/pointarray.js')
-rw-r--r--src/pointarray.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pointarray.js b/src/pointarray.js
index 2911cd1..61c7a93 100644
--- a/src/pointarray.js
+++ b/src/pointarray.js
@@ -55,8 +55,8 @@ SVG.extend(SVG.PointArray, {
if (array.length % 2 !== 0) array.pop()
// wrap points in two-tuples and parse points as floats
- for(var i = 0, len = points.length; i < len; i + 2)
- point.push([ parseFloat(points[i]), parseFloat(points[i+1]) ])
+ for(var i = 0, len = array.length; i < len; i = i + 2)
+ points.push([ parseFloat(array[i]), parseFloat(array[i+1]) ])
return points
}