0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

use addBlock instead of addLine

This commit is contained in:
Conduitry 2018-03-27 01:29:26 -04:00
parent d3451a530f
commit 6ff60db212

View File

@ -307,7 +307,7 @@ export default class Component extends Node {
);
}
block.builders.mount.addLine(deindent`
block.builders.mount.addBlock(deindent`
if (${name}) {
${name}._mount(${parentNode || '#target'}, ${parentNode ? 'null' : 'anchor'});
${ref && `#component.refs.${ref.name} = ${name};`}