Skip to content

Commit

Permalink
repair linked list
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Oct 20, 2018
1 parent e5f5995 commit ae2bf97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/compile/render-dom/wrappers/Fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export default class FragmentWrapper {
if (!first.data) {
first.var = null;
this.nodes.shift();

if (this.nodes[0]) {
this.nodes[0].prev = null;
}
}
}
}
Expand Down

1 comment on commit ae2bf97

@stalkerg
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, I forgot to check prev links

Please sign in to comment.