fix bad indentation in generated code

pull/647/head
Rich Harris 8 years ago
parent dc0dedf3fe
commit e9516abffd

@ -272,15 +272,11 @@ function compound(
}
block.builders.unmount.addLine(
`${if_name}{
${name}.unmount();
}`
`${if_name}${name}.unmount();`
);
block.builders.destroy.addLine(
`${if_name}{
${name}.destroy();
}`
`${if_name}${name}.destroy();`
);
}

@ -164,16 +164,12 @@ function create_main_fragment ( state, component ) {
},
unmount: function () {
{
if_block.unmount();
}
if_block.unmount();
detachNode( if_block_anchor );
},
destroy: function () {
{
if_block.destroy();
}
if_block.destroy();
}
};
}

@ -29,16 +29,12 @@ function create_main_fragment ( state, component ) {
},
unmount: function () {
{
if_block.unmount();
}
if_block.unmount();
detachNode( if_block_anchor );
},
destroy: function () {
{
if_block.destroy();
}
if_block.destroy();
}
};
}

Loading…
Cancel
Save