marko 6.0.0-next.3.67 → 6.0.0-next.3.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/debug/dom.js CHANGED
@@ -290,7 +290,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
290
290
  const branchEnd = (branchId, reference) => {
291
291
  const branch = scopeLookup[branchId] ||= {};
292
292
  let endNode = reference;
293
- while (visitNodes.has(endNode = endNode.previousSibling)) ;
293
+ while (endNode.previousSibling !== branch.___startNode && visitNodes.has(endNode = endNode.previousSibling)) ;
294
294
  if (endNode === lastEndNode) {
295
295
  endNode = reference.parentNode.insertBefore(
296
296
  new Text(),
@@ -1654,7 +1654,6 @@ function awaitTag(nodeAccessor, renderer) {
1654
1654
  })
1655
1655
  );
1656
1656
  if (tryWithPlaceholder) {
1657
- tryWithPlaceholder;
1658
1657
  if (!--tryWithPlaceholder.___pendingAsyncCount) {
1659
1658
  const placeholderBranch = tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */];
1660
1659
  tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */] = void 0;
@@ -1665,12 +1664,6 @@ function awaitTag(nodeAccessor, renderer) {
1665
1664
  placeholderBranch.___startNode
1666
1665
  );
1667
1666
  removeAndDestroyBranch(placeholderBranch);
1668
- } else {
1669
- insertBranchBefore(
1670
- tryWithPlaceholder,
1671
- referenceNode.parentNode,
1672
- referenceNode
1673
- );
1674
1667
  }
1675
1668
  if (tryWithPlaceholder.___effects) {
1676
1669
  runEffects(tryWithPlaceholder.___effects, true);
@@ -202,7 +202,7 @@ function init(runtimeId = DEFAULT_RUNTIME_ID) {
202
202
  const branchEnd = (branchId, reference) => {
203
203
  const branch = scopeLookup[branchId] ||= {};
204
204
  let endNode = reference;
205
- while (visitNodes.has(endNode = endNode.previousSibling)) ;
205
+ while (endNode.previousSibling !== branch.___startNode && visitNodes.has(endNode = endNode.previousSibling)) ;
206
206
  if (endNode === lastEndNode) {
207
207
  endNode = reference.parentNode.insertBefore(
208
208
  new Text(),
@@ -1566,7 +1566,6 @@ function awaitTag(nodeAccessor, renderer) {
1566
1566
  })
1567
1567
  );
1568
1568
  if (tryWithPlaceholder) {
1569
- tryWithPlaceholder;
1570
1569
  if (!--tryWithPlaceholder.___pendingAsyncCount) {
1571
1570
  const placeholderBranch = tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */];
1572
1571
  tryWithPlaceholder["#PlaceholderBranch" /* PlaceholderBranch */] = void 0;
@@ -1577,12 +1576,6 @@ function awaitTag(nodeAccessor, renderer) {
1577
1576
  placeholderBranch.___startNode
1578
1577
  );
1579
1578
  removeAndDestroyBranch(placeholderBranch);
1580
- } else {
1581
- insertBranchBefore(
1582
- tryWithPlaceholder,
1583
- referenceNode.parentNode,
1584
- referenceNode
1585
- );
1586
1579
  }
1587
1580
  if (tryWithPlaceholder.___effects) {
1588
1581
  runEffects(tryWithPlaceholder.___effects, true);