Skip to content

Anchor-less if and each blocks #512

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 25, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
yield blocks never need an anchor
  • Loading branch information
Rich-Harris committed Apr 19, 2017
commit 6587cbdbac8a63fc123d5b4768e1e77ccc135da0
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