MCPcopy Index your code
hub / github.com/docker/getting-started / getRoot

Function getRoot

app/src/static/js/react-bootstrap.js:3216–3222  ·  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

3214
3215
3216function getRoot(node) {
3217 if (node.parentNode !== null) {
3218 return getRoot(node.parentNode);
3219 }
3220
3221 return node;
3222}
3223/**
3224 * Finds the offset parent common to the two provided nodes
3225 * @method

Callers 1

findCommonOffsetParentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…