UNPKG
ui
Version:
latest (0.2.4)
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.0
platform agnostic ui models
marcuswestin/ui.js
ui
/
dom
/
getWindowOf.js
4 lines
•
166 B
JavaScript
View Raw
1
2
3
4
module
.
exports
= function
getWindowOf
(element)
{
var
doc
=
(element.ownerDocument || element)
return
(
'defaultView'
in doc ? doc.defaultView : doc.parentWindow) }