MCPcopy Create free account
hub / github.com/JsAaron/jQuery / getWindow

Function getWindow

2.1.1/test/other.js:6311–6313  ·  view source on GitHub ↗

* Gets a window from an element

( elem )

Source from the content-addressed store, hash-verified

6309 * Gets a window from an element
6310 */
6311function getWindow( elem ) {
6312 return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
6313}
6314
6315jQuery.offset = {
6316 setOffset: function( elem, options, i ) {

Callers 1

other.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected