MCPcopy Index your code
hub / github.com/JsAaron/jQuery / getWindow

Function getWindow

2.1.1/src/offset.js:20–22  ·  view source on GitHub ↗

* Gets a window from an element

( elem )

Source from the content-addressed store, hash-verified

18 * Gets a window from an element
19 */
20function getWindow( elem ) {
21 return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
22}
23
24jQuery.offset = {
25 setOffset: function( elem, options, i ) {

Callers 1

offset.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected