@@ -1297,7 +1297,7 @@ class Stylesheet extends CSSParserRule {
1297
1297
}
1298
1298
}
1299
1299
toSource ( ) {
1300
- return "\n" . join ( this . rules . map ( x => x . toSource ( { indent :0 } ) ) ) + "\n" ;
1300
+ return this . rules . map ( x => x . toSource ( { indent :0 } ) ) . join ( "\n" ) ;
1301
1301
}
1302
1302
}
1303
1303
@@ -1328,12 +1328,10 @@ class AtRule extends CSSParserRule {
1328
1328
}
1329
1329
s += "{\n" ;
1330
1330
if ( this . declarations ) {
1331
- s += "\n" . join ( this . declarations . map ( x => x . toSource ( indent + 1 ) ) ) ;
1332
- s += "\n" ;
1331
+ s += this . declarations . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
1333
1332
}
1334
1333
if ( this . rules ) {
1335
- s += "\n" . join ( this . rules . map ( x => x . toSource ( indent + 1 ) ) ) ;
1336
- s += "\n" ;
1334
+ s += this . rules . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
1337
1335
}
1338
1336
s += printIndent ( indent ) + "}" ;
1339
1337
}
@@ -1364,12 +1362,10 @@ class QualifiedRule extends CSSParserRule {
1364
1362
}
1365
1363
s += "{\n" ;
1366
1364
if ( this . declarations ) {
1367
- s += "\n" . join ( this . declarations . map ( x => x . toSource ( indent + 1 ) ) ) ;
1368
- s += "\n" ;
1365
+ s += this . declarations . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
1369
1366
}
1370
1367
if ( this . rules ) {
1371
- s += "\n" . join ( this . rules . map ( x => x . toSource ( indent + 1 ) ) ) ;
1372
- s += "\n" ;
1368
+ s += this . rules . map ( x => x . toSource ( indent + 1 ) ) . join ( "\n" ) + "\n" ;
1373
1369
}
1374
1370
s += printIndent ( indent ) + "}" ;
1375
1371
}
@@ -1393,7 +1389,7 @@ class Declaration extends CSSParserRule {
1393
1389
}
1394
1390
toSource ( indent = 0 ) {
1395
1391
let s = printIndent ( indent ) + escapeIdent ( this . name ) + ": " ;
1396
- s += "" . join ( this . value . map ( x => x . toSource ( ) ) )
1392
+ s += this . value . map ( x => x . toSource ( ) ) . join ( "" ) ;
1397
1393
if ( this . important ) {
1398
1394
s += " !important" ;
1399
1395
}
@@ -1417,7 +1413,7 @@ class SimpleBlock extends CSSParserRule {
1417
1413
}
1418
1414
toSource ( ) {
1419
1415
const mirror = { "{" :"}" , "[" :"]" , "(" :")" } ;
1420
- return this . name + "" . join ( this . value . map ( x => x . toSource ( ) ) ) + mirror [ this . name ] ;
1416
+ return this . name + this . value . map ( x => x . toSource ( ) ) . join ( "" ) + mirror [ this . name ] ;
1421
1417
}
1422
1418
}
1423
1419
@@ -1436,7 +1432,7 @@ class Func extends CSSParserRule {
1436
1432
}
1437
1433
}
1438
1434
toSource ( ) {
1439
- return escapeIdent ( this . name ) + "(" + "" . join ( this . value . map ( x => x . toSource ( ) ) ) + ")" ;
1435
+ return escapeIdent ( this . name ) + "(" + this . value . map ( x => x . toSource ( ) ) . join ( "" ) + ")" ;
1440
1436
}
1441
1437
}
1442
1438
0 commit comments