MCPcopy Create free account
hub / github.com/idank/explainshell / getWindow

Function getWindow

explainshell/web/static/js/jquery.js:9526–9532  ·  view source on GitHub ↗
( elem )

Source from the content-addressed store, hash-verified

9524});
9525
9526function getWindow( elem ) {
9527 return jQuery.isWindow( elem ) ?
9528 elem :
9529 elem.nodeType === 9 ?
9530 elem.defaultView || elem.parentWindow :
9531 false;
9532}
9533// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
9534jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
9535 jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected