From d467a8c40a085a54d327f6f1e75bc7d9956cad50 Mon Sep 17 00:00:00 2001 From: rameel Date: Sun, 25 Oct 2026 21:47:13 +0500 Subject: [PATCH] plugin/fragment: rename _r_anchor to _r_owner The property is set on the content nodes of a block and points to the anchor that owns them, while anchors themselves are marked by _r_block. --- src/utilities/anchor_block.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utilities/anchor_block.js b/src/utilities/anchor_block.js index 0db49db..46bb920 100644 --- a/src/utilities/anchor_block.js +++ b/src/utilities/anchor_block.js @@ -53,7 +53,7 @@ export function anchor_block(el, template, { addScopeToNode, cleanup, destroyTre delete el._x_lastRenderedEl; for (let node of nodes) { - node._r_anchor = null; + node._r_owner = null; is_element(node) && destroyTree(node); node.remove(); } @@ -64,7 +64,7 @@ export function anchor_block(el, template, { addScopeToNode, cleanup, destroyTre mutateDom(() => { for (let node of nodes) { - node._r_anchor = el; + node._r_owner = el; is_element(node) && addScopeToNode(node, scope, el); } @@ -106,7 +106,7 @@ function initialize() { // or block at the top level of the block is not kept in order. for (let mutation of mutations) { for (let node of mutation.addedNodes) { - anchors.add(node._r_block ? node : node._r_anchor); + anchors.add(node._r_block ? node : node._r_owner); } }