(node, unmountOnly)
| 306 | recollectNodeTree(child, !1); |
| 307 | } |
| 308 | function recollectNodeTree(node, unmountOnly) { |
| 309 | var component = node._component; |
| 310 | if (component) unmountComponent(component); |
| 311 | else { |
| 312 | if (null != node.__preactattr_) applyRef(node.__preactattr_.ref, null); |
| 313 | if (!1 === unmountOnly || null == node.__preactattr_) removeNode(node); |
| 314 | removeChildren(node); |
| 315 | } |
| 316 | } |
| 317 | function removeChildren(node) { |
| 318 | node = node.lastChild; |
| 319 | while (node) { |
no test coverage detected
searching dependent graphs…