@@ -135,7 +135,7 @@ export default class Block {
135
135
this . mount ( name , parentNode ) ;
136
136
137
137
if ( isToplevel ) {
138
- this . builders . unmount . addLine ( `@detachNode( ${ name } );` ) ;
138
+ this . builders . unmount . addLine ( `@detachNode(${ name } );` ) ;
139
139
}
140
140
}
141
141
@@ -180,9 +180,9 @@ export default class Block {
180
180
181
181
mount ( name : string , parentNode : string ) {
182
182
if ( parentNode ) {
183
- this . builders . mount . addLine ( `@appendNode( ${ name } , ${ parentNode } );` ) ;
183
+ this . builders . mount . addLine ( `@appendNode(${ name } , ${ parentNode } );` ) ;
184
184
} else {
185
- this . builders . mount . addLine ( `@insertNode( ${ name } , #target, anchor );` ) ;
185
+ this . builders . mount . addLine ( `@insertNode(${ name } , #target, anchor);` ) ;
186
186
}
187
187
}
188
188
@@ -225,7 +225,7 @@ export default class Block {
225
225
properties . addBlock ( `create: @noop,` ) ;
226
226
} else {
227
227
properties . addBlock ( deindent `
228
- create: function () {
228
+ create: function() {
229
229
${ this . builders . create }
230
230
${ ! this . builders . hydrate . isEmpty ( ) && `this.hydrate();` }
231
231
},
@@ -237,7 +237,7 @@ export default class Block {
237
237
properties . addBlock ( `claim: @noop,` ) ;
238
238
} else {
239
239
properties . addBlock ( deindent `
240
- claim: function ( nodes ) {
240
+ claim: function( nodes) {
241
241
${ this . builders . claim }
242
242
${ ! this . builders . hydrate . isEmpty ( ) && `this.hydrate();` }
243
243
},
@@ -247,7 +247,7 @@ export default class Block {
247
247
248
248
if ( ! this . builders . hydrate . isEmpty ( ) ) {
249
249
properties . addBlock ( deindent `
250
- hydrate: function ( nodes ) {
250
+ hydrate: function( nodes) {
251
251
${ this . builders . hydrate }
252
252
},
253
253
` ) ;
@@ -257,7 +257,7 @@ export default class Block {
257
257
properties . addBlock ( `mount: @noop,` ) ;
258
258
} else {
259
259
properties . addBlock ( deindent `
260
- mount: function ( #target, anchor ) {
260
+ mount: function( #target, anchor) {
261
261
${ this . builders . mount }
262
262
},
263
263
` ) ;
@@ -268,7 +268,7 @@ export default class Block {
268
268
properties . addBlock ( `update: @noop,` ) ;
269
269
} else {
270
270
properties . addBlock ( deindent `
271
- update: function ( changed, ${ this . params . join ( ', ' ) } ) {
271
+ update: function( changed, ${ this . params . join ( ', ' ) } ) {
272
272
${ this . builders . update }
273
273
},
274
274
` ) ;
@@ -278,20 +278,20 @@ export default class Block {
278
278
if ( this . hasIntroMethod ) {
279
279
if ( hasIntros ) {
280
280
properties . addBlock ( deindent `
281
- intro: function ( #target, anchor ) {
282
- if ( ${ introing } ) return;
281
+ intro: function( #target, anchor) {
282
+ if (${ introing } ) return;
283
283
${ introing } = true;
284
284
${ hasOutros && `${ outroing } = false;` }
285
285
286
286
${ this . builders . intro }
287
287
288
- this.mount( #target, anchor );
288
+ this.mount(#target, anchor);
289
289
},
290
290
` ) ;
291
291
} else {
292
292
properties . addBlock ( deindent `
293
- intro: function ( #target, anchor ) {
294
- this.mount( #target, anchor );
293
+ intro: function( #target, anchor) {
294
+ this.mount(#target, anchor);
295
295
},
296
296
` ) ;
297
297
}
@@ -300,8 +300,8 @@ export default class Block {
300
300
if ( this . hasOutroMethod ) {
301
301
if ( hasOutros ) {
302
302
properties . addBlock ( deindent `
303
- outro: function ( ${ this . alias ( 'outrocallback' ) } ) {
304
- if ( ${ outroing } ) return;
303
+ outro: function( ${ this . alias ( 'outrocallback' ) } ) {
304
+ if (${ outroing } ) return;
305
305
${ outroing } = true;
306
306
${ hasIntros && `${ introing } = false;` }
307
307
@@ -312,7 +312,7 @@ export default class Block {
312
312
` ) ;
313
313
} else {
314
314
properties . addBlock ( deindent `
315
- outro: function ( outrocallback ) {
315
+ outro: function( outrocallback) {
316
316
outrocallback();
317
317
},
318
318
` ) ;
@@ -323,7 +323,7 @@ export default class Block {
323
323
properties . addBlock ( `unmount: @noop,` ) ;
324
324
} else {
325
325
properties . addBlock ( deindent `
326
- unmount: function () {
326
+ unmount: function() {
327
327
${ this . builders . unmount }
328
328
},
329
329
` ) ;
@@ -333,16 +333,14 @@ export default class Block {
333
333
properties . addBlock ( `destroy: @noop` ) ;
334
334
} else {
335
335
properties . addBlock ( deindent `
336
- destroy: function () {
336
+ destroy: function() {
337
337
${ this . builders . destroy }
338
338
}
339
339
` ) ;
340
340
}
341
341
342
342
return deindent `
343
- function ${ this . name } ( ${ this . params . join ( ', ' ) } , #component${ this . key
344
- ? `, ${ localKey } `
345
- : '' } ) {
343
+ function ${ this . name } (${ this . params . join ( ', ' ) } , #component${ this . key ? `, ${ localKey } ` : '' } ) {
346
344
${ this . variables . size > 0 &&
347
345
`var ${ Array . from ( this . variables . keys ( ) )
348
346
. map ( key => {
0 commit comments