(inst)
| 2764 | }); |
| 2765 | |
| 2766 | function getParent(inst) { |
| 2767 | do { |
| 2768 | inst = inst['return']; |
| 2769 | // TODO: If this is a HostRoot we might want to bail out. |
| 2770 | // That is depending on if we want nested subtrees (layers) to bubble |
| 2771 | // events to their parent. We could also go through parentNode on the |
| 2772 | // host node but that wouldn't work for React Native and doesn't let us |
| 2773 | // do the portal feature. |
| 2774 | } while (inst && inst.tag !== HostComponent); |
| 2775 | if (inst) { |
| 2776 | return inst; |
| 2777 | } |
| 2778 | return null; |
| 2779 | } |
| 2780 | |
| 2781 | /** |
| 2782 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected