MCPcopy Create free account
hub / github.com/frank-lam/fullstack-tutorial / getWindow

Function getWindow

notes/docsify/unpkg/gotop/jquery-2.1.0.js:8828–8830  ·  view source on GitHub ↗

* Gets a window from an element

( elem )

Source from the content-addressed store, hash-verified

8826 * Gets a window from an element
8827 */
8828function getWindow( elem ) {
8829 return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
8830}
8831
8832jQuery.offset = {
8833 setOffset: function( elem, options, i ) {

Callers 1

jquery-2.1.0.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected