diff --git a/src/svg/SvgExporter.js b/src/svg/SvgExporter.js index b65cdc92..92f13325 100644 --- a/src/svg/SvgExporter.js +++ b/src/svg/SvgExporter.js @@ -240,10 +240,8 @@ var SvgExporter = this.SvgExporter = new function() { case 'polyline': case 'polygon': var parts = []; - for(i = 0; i < segments.length; i++) { - var point = segments[i]._point; - parts.push(formatPoint(point)); - } + for(i = 0; i < segments.length; i++) + parts.push(formatPoint(segments[i]._point)); attrs = { points: parts.join(' ') };