dillon1000/react

Commit

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.
Browse files
Changed paths5 files
First-parent comparison
M src/core/ReactEventTopLevelCallback.js ModifiedM src/dom/getEventTarget.js ModifiedM src/eventPlugins/EnterLeaveEventPlugin.js ModifiedM src/test/ReactPerf.js ModifiedM src/vendor/core/ExecutionEnvironment.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…