dillon1000/react
Commit
Browse files Create `EventPluginRegistry`
The `EventPluginHub` module was getting huge and scary. This pulls out all of the logic required to inject plugins and publish their event registration names into a new `EventPluginRegistry` module. Functionally, nothing should have changed. I added many error checks to cover edge cases that we were not yet running into, but they are all in `EventPluginRegistry` and unit tested.
Changed paths11 files
First-parent comparisonsrc/core/ReactEventEmitter.js ModifiedM src/event/EventPluginHub.js ModifiedA src/event/EventPluginRegistry.js AddedA src/event/__tests__/EventPluginRegistry-test.js AddedM src/eventPlugins/AnalyticsEventPluginFactory.js ModifiedM src/eventPlugins/EnterLeaveEventPlugin.js ModifiedM src/eventPlugins/ResponderEventPlugin.js ModifiedM src/eventPlugins/SimpleEventPlugin.js ModifiedM src/eventPlugins/TapEventPlugin.js ModifiedM src/eventPlugins/__tests__/AnalyticsEventPlugin-test.js ModifiedM src/eventPlugins/__tests__/ResponderEventPlugin-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…