MCPcopy Create free account
hub / github.com/docker/getting-started / getWindow

Function getWindow

app/src/static/js/react-bootstrap.js:3998–4001  ·  view source on GitHub ↗

* Get the window associated with the element * @argument {Element} element * @returns {Window}

(element)

Source from the content-addressed store, hash-verified

3996
3997
3998function getWindow(element) {
3999 var ownerDocument = element.ownerDocument;
4000 return ownerDocument ? ownerDocument.defaultView : window;
4001}
4002
4003function attachToScrollParents(scrollParent, event, callback, scrollParents) {
4004 var isBody = scrollParent.nodeName === 'BODY';

Callers 2

setupEventListenersFunction · 0.85
removeEventListenersFunction · 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…