5 lines
166 B
JavaScript
5 lines
166 B
JavaScript
import ownerDocument from './ownerDocument';
|
|
export default function ownerWindow(node) {
|
|
var doc = ownerDocument(node);
|
|
return doc && doc.defaultView || window;
|
|
} |