mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #5166 from spicyj/gh-5157
Add feature test for document.createEvent
This commit is contained in:
@@ -61,7 +61,9 @@ if (__DEV__) {
|
||||
* real browser event.
|
||||
*/
|
||||
if (typeof window !== 'undefined' &&
|
||||
typeof window.dispatchEvent === 'function') {
|
||||
typeof window.dispatchEvent === 'function' &&
|
||||
typeof document !== 'undefined' &&
|
||||
typeof document.createEvent === 'function') {
|
||||
var fakeNode = document.createElement('react');
|
||||
ReactErrorUtils.invokeGuardedCallback = function(name, func, a, b) {
|
||||
var boundFunc = func.bind(null, a, b);
|
||||
|
||||
Reference in New Issue
Block a user