Skip to content

Commit

Permalink
Add to simpleEventPLugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense committed Jan 5, 2018
1 parent 1668c66 commit 94d55f8
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 131 deletions.
2 changes: 0 additions & 2 deletions packages/react-dom/src/client/ReactDOMClientInjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import * as EventPluginHub from 'events/EventPluginHub';
import * as EventPluginUtils from 'events/EventPluginUtils';

import * as ReactDOMComponentTree from './ReactDOMComponentTree';
import AuxClickEventPlugin from '../events/AuxClickEventPlugin';
import BeforeInputEventPlugin from '../events/BeforeInputEventPlugin';
import ChangeEventPlugin from '../events/ChangeEventPlugin';
import DOMEventPluginOrder from '../events/DOMEventPluginOrder';
Expand All @@ -33,7 +32,6 @@ EventPluginUtils.injection.injectComponentTree(ReactDOMComponentTree);
*/
EventPluginHub.injection.injectEventPluginsByName({
SimpleEventPlugin: SimpleEventPlugin,
AuxClickEventPlugin: AuxClickEventPlugin,
EnterLeaveEventPlugin: EnterLeaveEventPlugin,
ChangeEventPlugin: ChangeEventPlugin,
SelectEventPlugin: SelectEventPlugin,
Expand Down
50 changes: 0 additions & 50 deletions packages/react-dom/src/events/AuxClickEventPlugin.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/react-dom/src/events/BrowserEventConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const topLevelTypes = {
topAnimationEnd: getVendorPrefixedEventName('animationend'),
topAnimationIteration: getVendorPrefixedEventName('animationiteration'),
topAnimationStart: getVendorPrefixedEventName('animationstart'),
topAuxClick: 'auxclick',
topBlur: 'blur',
topCancel: 'cancel',
topCanPlay: 'canplay',
Expand Down
1 change: 0 additions & 1 deletion packages/react-dom/src/events/DOMEventPluginOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
const DOMEventPluginOrder = [
'ResponderEventPlugin',
'SimpleEventPlugin',
'AuxClickEventPlugin',
'TapEventPlugin',
'EnterLeaveEventPlugin',
'ChangeEventPlugin',
Expand Down
2 changes: 2 additions & 0 deletions packages/react-dom/src/events/SimpleEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const topLevelEventsToDispatchConfig: {
'animationEnd',
'animationIteration',
'animationStart',
'auxClick',
'blur',
'cancel',
'canPlay',
Expand Down Expand Up @@ -208,6 +209,7 @@ const SimpleEventPlugin: PluginModule<MouseEvent> = {
return null;
}
/* falls through */
case 'topAuxClick':
case 'topDoubleClick':
case 'topMouseDown':
case 'topMouseMove':
Expand Down

This file was deleted.

0 comments on commit 94d55f8

Please sign in to comment.