SvgExporter: Some more code shortening.

This commit is contained in:
Jürg Lehni 2012-11-06 11:19:54 -08:00
parent cd924f066e
commit 4c463eb1f1

View file

@ -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(' ')
};