mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
1 parent
af99b2c2a3
commit
1206d8d2eb
1 file changed
+3
-1
@@ -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