mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
SvgExporter: Some more code shortening.
This commit is contained in:
parent
cd924f066e
commit
4c463eb1f1
1 changed files with 2 additions and 4 deletions
|
@ -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(' ')
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue