aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/poly.js4
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
+})