Skip to content

Commit

Permalink
Merge pull request #1661 from embroider-build/fix-html-clear
Browse files Browse the repository at this point in the history
Fix html clearing on rebuild
  • Loading branch information
ef4 committed Nov 14, 2023
2 parents 361e2f7 + 245effe commit ded6329
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions packages/core/src/ember-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,8 @@ class Placeholder {

clear() {
let { start, end, parent } = this;
let target = start.nextSibling;

while (target && target !== end) {
parent.removeChild(target);
target = target.nextSibling;
while (start.nextSibling && start.nextSibling !== end) {
parent.removeChild(start.nextSibling);
}
}

Expand Down

0 comments on commit ded6329

Please sign in to comment.