Skip to content

Commit

Permalink
yield blocks never need an anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Apr 19, 2017
1 parent 9480f34 commit 6587cbd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/generators/dom/visitors/YieldTag.js
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 6587cbd

Please sign in to comment.