MCPcopy Index your code
hub / github.com/EmulatorJS/EmulatorJS / isChild

Method isChild

data/src/emulator.js:1695–1706  ·  view source on GitHub ↗
(first, second)

Source from the content-addressed store, hash-verified

1693 return this.cheatMenu.style.display !== "none" || this.netplayMenu.style.display !== "none" || this.controlMenu.style.display !== "none" || this.currentPopup !== null;
1694 }
1695 isChild(first, second) {
1696 if (!first || !second) return false;
1697 const adown = first.nodeType === 9 ? first.documentElement : first;
1698
1699 if (first === second) return true;
1700
1701 if (adown.contains) {
1702 return adown.contains(second);
1703 }
1704
1705 return first.compareDocumentPosition && first.compareDocumentPosition(second) & 16;
1706 }
1707 createBottomMenuBar() {
1708 this.elements.menu = this.createElement("div");
1709

Callers 2

createBottomMenuBarMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected