Skip to content

Commit

Permalink
Revert "Simulate input event" for now
Browse files Browse the repository at this point in the history
This reverts commit 580e8f0.
  • Loading branch information
sophiebits committed Jun 4, 2013
1 parent 580e8f0 commit 35306fa
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 108 deletions.
4 changes: 1 addition & 3 deletions src/core/ReactDefaultInjection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ var ReactDOMForm = require('ReactDOMForm');
var DefaultEventPluginOrder = require('DefaultEventPluginOrder');
var EnterLeaveEventPlugin = require('EnterLeaveEventPlugin');
var EventPluginHub = require('EventPluginHub');
var InputEventPlugin = require('InputEventPlugin');
var ReactInstanceHandles = require('ReactInstanceHandles');
var SimpleEventPlugin = require('SimpleEventPlugin');

Expand All @@ -41,8 +40,7 @@ function inject() {
*/
EventPluginHub.injection.injectEventPluginsByName({
'SimpleEventPlugin': SimpleEventPlugin,
'EnterLeaveEventPlugin': EnterLeaveEventPlugin,
'InputEventPlugin': InputEventPlugin
'EnterLeaveEventPlugin': EnterLeaveEventPlugin
});

/*
Expand Down
4 changes: 1 addition & 3 deletions src/core/ReactEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,8 @@ function listenAtTopLevel(touchNotMouse) {
trapBubbledEvent(topLevelTypes.topKeyUp, 'keyup', mountAt);
trapBubbledEvent(topLevelTypes.topKeyPress, 'keypress', mountAt);
trapBubbledEvent(topLevelTypes.topKeyDown, 'keydown', mountAt);
trapBubbledEvent(topLevelTypes.topChange, 'change', mountAt);
trapBubbledEvent(topLevelTypes.topInput, 'input', mountAt);
trapBubbledEvent(topLevelTypes.topCut, 'cut', mountAt);
trapBubbledEvent(topLevelTypes.topPaste, 'paste', mountAt);
trapBubbledEvent(topLevelTypes.topChange, 'change', mountAt);
trapBubbledEvent(
topLevelTypes.topDOMCharacterDataModified,
'DOMCharacterDataModified',
Expand Down
2 changes: 0 additions & 2 deletions src/event/EventConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ var topLevelTypes = keyMirror({
topBlur: null,
topChange: null,
topClick: null,
topCut: null,
topDOMCharacterDataModified: null,
topDoubleClick: null,
topFocus: null,
Expand All @@ -43,7 +42,6 @@ var topLevelTypes = keyMirror({
topMouseOver: null,
topMouseUp: null,
topMouseWheel: null,
topPaste: null,
topScroll: null,
topSubmit: null,
topTouchCancel: null,
Expand Down
1 change: 0 additions & 1 deletion src/eventPlugins/DefaultEventPluginOrder.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ var DefaultEventPluginOrder = [
keyOf({SimpleEventPlugin: null}),
keyOf({TapEventPlugin: null}),
keyOf({EnterLeaveEventPlugin: null}),
keyOf({InputEventPlugin: null}),
keyOf({AnalyticsEventPlugin: null})
];

Expand Down
99 changes: 0 additions & 99 deletions src/eventPlugins/InputEventPlugin.js

This file was deleted.

7 changes: 7 additions & 0 deletions src/eventPlugins/SimpleEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ var SimpleEventPlugin = {
captured: keyOf({onKeyDownCapture: true})
}
},
input: {
phasedRegistrationNames: {
bubbled: keyOf({onInput: true}),
captured: keyOf({onInputCapture: true})
}
},
focus: {
phasedRegistrationNames: {
bubbled: keyOf({onFocus: true}),
Expand Down Expand Up @@ -220,6 +226,7 @@ SimpleEventPlugin.topLevelTypesToAbstract = {
topKeyUp: SimpleEventPlugin.abstractEventTypes.keyUp,
topKeyPress: SimpleEventPlugin.abstractEventTypes.keyPress,
topKeyDown: SimpleEventPlugin.abstractEventTypes.keyDown,
topInput: SimpleEventPlugin.abstractEventTypes.input,
topFocus: SimpleEventPlugin.abstractEventTypes.focus,
topBlur: SimpleEventPlugin.abstractEventTypes.blur,
topScroll: SimpleEventPlugin.abstractEventTypes.scroll,
Expand Down

0 comments on commit 35306fa

Please sign in to comment.