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

Function getWindow

2.1.1/test/jquery-1.11.1.js:10016–10022  ·  view source on GitHub ↗

* Gets a window from an element

( elem )

Source from the content-addressed store, hash-verified

10014 * Gets a window from an element
10015 */
10016function getWindow( elem ) {
10017 return jQuery.isWindow( elem ) ?
10018 elem :
10019 elem.nodeType === 9 ?
10020 elem.defaultView || elem.parentWindow :
10021 false;
10022}
10023
10024jQuery.offset = {
10025 setOffset: function( elem, options, i ) {

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected