(inst)
| 2606 | }); |
| 2607 | |
| 2608 | function getParent(inst) { |
| 2609 | do { |
| 2610 | inst = inst['return']; |
| 2611 | // TODO: If this is a HostRoot we might want to bail out. |
| 2612 | // That is depending on if we want nested subtrees (layers) to bubble |
| 2613 | // events to their parent. We could also go through parentNode on the |
| 2614 | // host node but that wouldn't work for React Native and doesn't let us |
| 2615 | // do the portal feature. |
| 2616 | } while (inst && inst.tag !== HostComponent); |
| 2617 | if (inst) { |
| 2618 | return inst; |
| 2619 | } |
| 2620 | return null; |
| 2621 | } |
| 2622 | |
| 2623 | /** |
| 2624 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected