(inst)
| 1837 | }); |
| 1838 | |
| 1839 | function getParent(inst) { |
| 1840 | do { |
| 1841 | inst = inst['return']; |
| 1842 | // TODO: If this is a HostRoot we might want to bail out. |
| 1843 | // That is depending on if we want nested subtrees (layers) to bubble |
| 1844 | // events to their parent. We could also go through parentNode on the |
| 1845 | // host node but that wouldn't work for React Native and doesn't let us |
| 1846 | // do the portal feature. |
| 1847 | } while (inst && inst.tag !== HostComponent); |
| 1848 | if (inst) { |
| 1849 | return inst; |
| 1850 | } |
| 1851 | return null; |
| 1852 | } |
| 1853 | |
| 1854 | /** |
| 1855 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected