dillon1000/react
Commit
Browse files Move guards from auto binding to event dispatch
This wraps a proper guard around event dispatching so that errors doesn't interupt other event callbacks. Instead we rethrow the first error after all callbacks have been invoked. For DEV mode we use native event dispatching if available. This has the benefit that caught exceptions show up in the dev tools even without caught exceptions being turned on. Yet, all callbacks are guaranteed to fire.
Changed paths6 files
First-parent comparisonsrc/isomorphic/classic/class/ReactClass.js ModifiedM src/renderers/dom/client/__tests__/ReactBrowserEventEmitter-test.js ModifiedM src/renderers/shared/event/EventPluginHub.js ModifiedM src/renderers/shared/event/EventPluginUtils.js ModifiedD src/renderers/shared/reconciler/__tests__/ReactCompositeComponentError-test.js DeletedM src/shared/utils/ReactErrorUtils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…