yield blocks never need an anchor

pull/512/head
Rich-Harris 8 years ago
parent 9480f349ec
commit 6587cbdbac

@ -1,9 +1,6 @@
export default function visitYieldTag ( generator, block, state ) {
const anchor = `yield_anchor`;
block.createAnchor( anchor, state.parentNode );
block.builders.mount.addLine(
`${block.component}._yield && ${block.component}._yield.mount( ${state.parentNode || block.target}, ${anchor} );`
`${block.component}._yield && ${block.component}._yield.mount( ${state.parentNode || block.target}, null );`
);
block.builders.destroy.addLine(

Loading…
Cancel
Save