Skip to content

Commit

Permalink
Add to simpleEventPLugin
Browse files Browse the repository at this point in the history
  • Loading branch information
jquense authored and nhunzaker committed Aug 3, 2018
1 parent b93c55a commit 5f2a02b
Show file tree
Hide file tree
Showing 6 changed files with 2 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 @@ -29,7 +28,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: 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
1 change: 1 addition & 0 deletions packages/react-dom/src/events/DOMTopLevelEventTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const TOP_CONTEXT_MENU = unsafeCastStringToDOMTopLevelType(
export const TOP_COPY = unsafeCastStringToDOMTopLevelType('copy');
export const TOP_CUT = unsafeCastStringToDOMTopLevelType('cut');
export const TOP_DOUBLE_CLICK = unsafeCastStringToDOMTopLevelType('dblclick');
export const TOP_AUX_CLICK = unsafeCastStringToDOMTopLevelType('auxclick');
export const TOP_DRAG = unsafeCastStringToDOMTopLevelType('drag');
export const TOP_DRAG_END = unsafeCastStringToDOMTopLevelType('dragend');
export const TOP_DRAG_ENTER = unsafeCastStringToDOMTopLevelType('dragenter');
Expand Down
1 change: 1 addition & 0 deletions packages/react-dom/src/events/SimpleEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const SimpleEventPlugin: PluginModule<MouseEvent> & {
return null;
}
/* falls through */
case DOMTopLevelEventTypes.TOP_AUX_CLICK:
case DOMTopLevelEventTypes.TOP_DOUBLE_CLICK:
case DOMTopLevelEventTypes.TOP_MOUSE_DOWN:
case DOMTopLevelEventTypes.TOP_MOUSE_MOVE:
Expand Down

This file was deleted.

0 comments on commit 5f2a02b

Please sign in to comment.