(inst)
| 1874 | }); |
| 1875 | |
| 1876 | function getParent(inst) { |
| 1877 | do { |
| 1878 | inst = inst['return']; |
| 1879 | // TODO: If this is a HostRoot we might want to bail out. |
| 1880 | // That is depending on if we want nested subtrees (layers) to bubble |
| 1881 | // events to their parent. We could also go through parentNode on the |
| 1882 | // host node but that wouldn't work for React Native and doesn't let us |
| 1883 | // do the portal feature. |
| 1884 | } while (inst && inst.tag !== HostComponent); |
| 1885 | if (inst) { |
| 1886 | return inst; |
| 1887 | } |
| 1888 | return null; |
| 1889 | } |
| 1890 | |
| 1891 | /** |
| 1892 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected