summaryrefslogtreecommitdiffstats
path: root/src/array.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-01-29 21:20:58 +0100
committerwout <wout@impinc.co.uk>2014-01-29 21:20:58 +0100
commit5b6736666dd85f8a063b87e6c6483ea47be4391c (patch)
tree139b35c98807ac36cad095af13ef45495958b78f /src/array.js
parent9688054367938f1e9240c2d8572e94bb0149bc77 (diff)
downloadsvg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.tar.gz
svg.js-5b6736666dd85f8a063b87e6c6483ea47be4391c.zip
Added SVG.PathArray, updated data() and bumped to v1.0rc1
Diffstat (limited to 'src/array.js')
-rwxr-xr-xsrc/array.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/array.js b/src/array.js
index 671c8e8..b239c78 100755
--- a/src/array.js
+++ b/src/array.js
@@ -30,10 +30,8 @@ SVG.extend(SVG.Array, {
}
// Clean up any duplicate points
, settle: function() {
- var i, seen = []
-
/* find all unique values */
- for (i = this.value.length - 1; i >= 0; i--)
+ for (var i = 0, il = this.value.length, seen = []; i < il; i++)
if (seen.indexOf(this.value[i]) == -1)
seen.push(this.value[i])