From 4c463eb1f11145b66b8829283cc2a19e9b55ecd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 6 Nov 2012 11:19:54 -0800 Subject: [PATCH] SvgExporter: Some more code shortening. --- src/svg/SvgExporter.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(' ') };