Function
moveStaticNode
(
{ el, anchor }: VNode,
container: RendererElement,
nextSibling: RendererNode | null,
)
Source from the content-addressed store, hash-verified
| 574 | } |
| 575 | |
| 576 | const moveStaticNode = ( |
| 577 | { el, anchor }: VNode, |
| 578 | container: RendererElement, |
| 579 | nextSibling: RendererNode | null, |
| 580 | ) => { |
| 581 | let next |
| 582 | while (el && el !== anchor) { |
| 583 | next = hostNextSibling(el) |
| 584 | hostInsert(el, container, nextSibling) |
| 585 | el = next |
| 586 | } |
| 587 | hostInsert(anchor!, container, nextSibling) |
| 588 | } |
| 589 | |
| 590 | const removeStaticNode = ({ el, anchor }: VNode) => { |
| 591 | let next |
Tested by
no test coverage detected