dillon1000/react

Commit

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.
Browse files
Changed paths6 files
First-parent comparison
M src/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 Modified
Patch

Files changed

Rendering syntax-highlighted changes…