(inst)
| 2651 | }); |
| 2652 | |
| 2653 | function getParent(inst) { |
| 2654 | do { |
| 2655 | inst = inst['return']; |
| 2656 | // TODO: If this is a HostRoot we might want to bail out. |
| 2657 | // That is depending on if we want nested subtrees (layers) to bubble |
| 2658 | // events to their parent. We could also go through parentNode on the |
| 2659 | // host node but that wouldn't work for React Native and doesn't let us |
| 2660 | // do the portal feature. |
| 2661 | } while (inst && inst.tag !== HostComponent); |
| 2662 | if (inst) { |
| 2663 | return inst; |
| 2664 | } |
| 2665 | return null; |
| 2666 | } |
| 2667 | |
| 2668 | /** |
| 2669 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected