(inst)
| 1746 | }); |
| 1747 | |
| 1748 | function getParent(inst) { |
| 1749 | do { |
| 1750 | inst = inst['return']; |
| 1751 | // TODO: If this is a HostRoot we might want to bail out. |
| 1752 | // That is depending on if we want nested subtrees (layers) to bubble |
| 1753 | // events to their parent. We could also go through parentNode on the |
| 1754 | // host node but that wouldn't work for React Native and doesn't let us |
| 1755 | // do the portal feature. |
| 1756 | } while (inst && inst.tag !== HostComponent); |
| 1757 | if (inst) { |
| 1758 | return inst; |
| 1759 | } |
| 1760 | return null; |
| 1761 | } |
| 1762 | |
| 1763 | /** |
| 1764 | * Return the lowest common ancestor of A and B, or null if they are in |
no outgoing calls
no test coverage detected