pull/1597/head
Conduitry 7 years ago
parent 557e7b7ccb
commit de1edddf0e

@ -208,14 +208,7 @@ export default class IfBlock extends Node {
const updateMountNode = this.getUpdateMountNode(anchor); const updateMountNode = this.getUpdateMountNode(anchor);
const changeBlock = deindent` const changeBlock = deindent`
${hasElse ${if_name}${name}.d(1);
? deindent`
${name}.d(1);
`
: deindent`
if (${name}) {
${name}.d(1);
}`}
${name} = ${current_block_type_and}${current_block_type}(#component, ctx); ${name} = ${current_block_type_and}${current_block_type}(#component, ctx);
${if_name}${name}.c(); ${if_name}${name}.c();
${if_name}${name}.${mountOrIntro}(${updateMountNode}, ${anchor}); ${if_name}${name}.${mountOrIntro}(${updateMountNode}, ${anchor});

Loading…
Cancel
Save