MCPcopy Create free account
hub / github.com/TruthHun/BookStack / getWindow

Function getWindow

static/jquery/1.12.4/jquery.js:10682–10688  ·  view source on GitHub ↗

* Gets a window from an element

( elem )

Source from the content-addressed store, hash-verified

10680 * Gets a window from an element
10681 */
10682function getWindow( elem ) {
10683 return jQuery.isWindow( elem ) ?
10684 elem :
10685 elem.nodeType === 9 ?
10686 elem.defaultView || elem.parentWindow :
10687 false;
10688}
10689
10690jQuery.offset = {
10691 setOffset: function( elem, options, i ) {

Callers 1

jquery.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected