(node: ElementNode<T>)
| 497 | } |
| 498 | |
| 499 | private removeNode(node: ElementNode<T>): void { |
| 500 | for (let child of node) { |
| 501 | this.removeNode(child); |
| 502 | } |
| 503 | |
| 504 | if (node.node) { |
| 505 | let collection = this.getMutableCollection(); |
| 506 | collection.removeNode(node.node.key); |
| 507 | if (process.env.NODE_ENV !== 'production' && this.keyOwners.get(node.node.key) === node) { |
| 508 | this.keyOwners.delete(node.node.key); |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | /** Finalizes the collection update, updating all nodes and freezing the collection. */ |
| 514 | getCollection(): C { |
no test coverage detected