mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
1 parent
5fa001b12c
commit
4d62e1ef59
1 file changed
+6
-1
@@ -38,7 +38,12 @@ var UIEventInterface = {
|
||||
return target;
|
||||
} else {
|
||||
var doc = target.ownerDocument;
|
||||
return doc.defaultView || doc.parentWindow;
|
||||
// TODO: Figure out why `ownerDocument` is sometimes undefined in IE8.
|
||||
if (doc) {
|
||||
return doc.defaultView || doc.parentWindow;
|
||||
} else {
|
||||
return window;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user