MCPcopy Create free account
hub / github.com/deepch/RTSPtoWebRTC / getRoot

Function getRoot

web/static/js/bootstrap.bundle.js:1729–1735  ·  view source on GitHub ↗

* Finds the root node (document, shadowDOM root) of the given element * @method * @memberof Popper.Utils * @argument {Element} node * @returns {Element} root node

(node)

Source from the content-addressed store, hash-verified

1727 * @returns {Element} root node
1728 */
1729 function getRoot(node) {
1730 if (node.parentNode !== null) {
1731 return getRoot(node.parentNode);
1732 }
1733
1734 return node;
1735 }
1736
1737 /**
1738 * Finds the offset parent common to the two provided nodes

Callers 1

findCommonOffsetParentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected