MCPcopy Create free account
hub / github.com/ampproject/amphtml / getWindow

Function getWindow

third_party/inputmask/inputmask.dependencyLib.js:49–51  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

47 }
48 }
49 function getWindow(elem) {
50 return isWindow(elem) ? elem : elem.nodeType === 9 ? elem.defaultView || elem.parentWindow : false;
51 }
52 DependencyLib.prototype = {
53 on: function(events, handler) {
54 if (isValidElement(this[0])) {

Callers

nothing calls this directly

Calls 1

isWindowFunction · 0.85

Tested by

no test coverage detected