MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / getRoot

Function getRoot

static/plugins/bootstrap/js/bootstrap.bundle.js:1741–1747  ·  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

1739 * @returns {Element} root node
1740 */
1741 function getRoot(node) {
1742 if (node.parentNode !== null) {
1743 return getRoot(node.parentNode);
1744 }
1745
1746 return node;
1747 }
1748
1749 /**
1750 * 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