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

Function getWindow

web/static/js/bootstrap.bundle.js:2521–2524  ·  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

2519 * @returns {Window}
2520 */
2521 function getWindow(element) {
2522 var ownerDocument = element.ownerDocument;
2523 return ownerDocument ? ownerDocument.defaultView : window;
2524 }
2525
2526 function attachToScrollParents(scrollParent, event, callback, scrollParents) {
2527 var isBody = scrollParent.nodeName === 'BODY';

Callers 2

setupEventListenersFunction · 0.85
removeEventListenersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected