diff options
author | Rob Walch <rwalch@gmail.com> | 2013-04-08 14:15:49 -0300 |
---|---|---|
committer | Rob Walch <rwalch@gmail.com> | 2013-04-08 14:15:49 -0300 |
commit | 4ff77fb57280aa8855e63fcbb1596587a260868b (patch) | |
tree | ea5aaafa64033aaad95414473556452c6d139f13 /src | |
parent | dfebeb0f3abca8218b0a0e62cab7260a4715b828 (diff) | |
download | svg.js-4ff77fb57280aa8855e63fcbb1596587a260868b.tar.gz svg.js-4ff77fb57280aa8855e63fcbb1596587a260868b.zip |
Fixed plot poly with array of points
Diffstat (limited to 'src')
-rw-r--r-- | src/poly.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/poly.js b/src/poly.js index 5c458f0..36492dc 100644 --- a/src/poly.js +++ b/src/poly.js @@ -26,10 +26,10 @@ SVG.extend(SVG.Polyline, SVG.Polygon, { for (i = 0, l = p.length; i < l; i++) points.push(p[i].join(',')) - p = points.length == 0 ? points.join(' ') : '0,0' + p = points.length > 0 ? points.join(' ') : '0,0' } return this.attr('points', p || '0,0') } -})
\ No newline at end of file +}) |