dillon1000/react
Commit
Browse files Remove all uses of ExecutionEnvironment.global
Closes #271. All three of these files are DOM-specific so it should be fine to use window. (ReactEventTopLevelCallback isn't obviously DOM-specific but it calls getEventTarget which is so I think we're fine here.) Test Plan: grunt test, tried events in a real browser and they seemed to work still.
Changed paths5 files
First-parent comparisonsrc/core/ReactEventTopLevelCallback.js ModifiedM src/dom/getEventTarget.js ModifiedM src/eventPlugins/EnterLeaveEventPlugin.js ModifiedM src/test/ReactPerf.js ModifiedM src/vendor/core/ExecutionEnvironment.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…