in src/component/utils/isInstanceOfNode.js [12:27]
function isInstanceOfNode(target: ?EventTarget): boolean {
// we changed the name because of having duplicate module provider (fbjs)
if (!target || !('ownerDocument' in target)) {
return false;
}
if ('ownerDocument' in target) {
const node: Node = (target: any);
if (!node.ownerDocument.defaultView) {
return node instanceof Node;
}
if (node instanceof node.ownerDocument.defaultView.Node) {
return true;
}
}
return false;
}