From 4ff77fb57280aa8855e63fcbb1596587a260868b Mon Sep 17 00:00:00 2001 From: Rob Walch Date: Mon, 8 Apr 2013 14:15:49 -0300 Subject: [PATCH] =?utf8?q?Fixed=20plot=20poly=20with=C2=A0array=20of=20poi?= =?utf8?q?nts?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/poly.js | 4 ++-- 1 file 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 +}) -- 2.39.5