(tNode: TNode, el: HTMLElement)
| 150 | * This actually removes the leaving HTML Element in the TNode |
| 151 | */ |
| 152 | export function clearLeavingNodes(tNode: TNode, el: HTMLElement): void { |
| 153 | const nodes = leavingNodes.get(tNode); |
| 154 | if (nodes && nodes.length > 0) { |
| 155 | const ix = nodes.findIndex((node) => node.el === el); |
| 156 | if (ix > -1) nodes.splice(ix, 1); |
| 157 | } |
| 158 | if (nodes?.length === 0) { |
| 159 | leavingNodes.delete(tNode); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | /** |
| 164 | * In the case that we have an existing node that's animating away in a |
no test coverage detected
searching dependent graphs…