Skip to content

Commit 43ee201

Browse files
committed
fix(runtime): remove duplicate block.d assignment in destroy_block cleanup
The nulling chain in destroy_block set block.d to null twice: block.fn = block.s = block.d = block.p = block.d = block.co = block.t = null The second block.d = null is a duplicate. Removing it so each property in the chain is unique, preventing potential confusion about which property the second slot was intended to clear.
1 parent 61271cb commit 43ee201

File tree

1 file changed

+1
-1
lines changed
  • packages/ripple/src/runtime/internal/client

1 file changed

+1
-1
lines changed

packages/ripple/src/runtime/internal/client/blocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,5 +440,5 @@ export function destroy_block(block, remove_dom = true) {
440440
unlink_block(block);
441441
}
442442

443-
block.fn = block.s = block.d = block.p = block.d = block.co = block.t = null;
443+
block.fn = block.s = block.d = block.p = block.co = block.t = null;
444444
}

0 commit comments

Comments
 (0)