Skip to content

Commit

Permalink
Merge pull request #65 from gaearon/patch-1
Browse files Browse the repository at this point in the history
Update to be compatible with React 15
  • Loading branch information
madjam002 committed Apr 1, 2016
2 parents 03b59a2 + 10d2fd5 commit f9cf9fd
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions src/TapEventPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,18 +120,17 @@ function createTapEventPlugin(shouldRejectClick) {

/**
* @param {string} topLevelType Record from `EventConstants`.
* @param {DOMEventTarget} topLevelTarget The listening component root node.
* @param {string} topLevelTargetID ID of `topLevelTarget`.
* @param {DOMEventTarget} targetInst The listening component root node.
* @param {object} nativeEvent Native browser event.
* @return {*} An accumulation of synthetic events.
* @see {EventPluginHub.extractEvents}
*/
extractEvents: function(
topLevelType,
topLevelTarget,
topLevelTargetID,
nativeEvent,
nativeEventTarget) {
topLevelType,
targetInst,
nativeEvent,
nativeEventTarget
) {

if (isTouch(topLevelType)) {
lastTouchEvent = now();
Expand All @@ -149,7 +148,7 @@ function createTapEventPlugin(shouldRejectClick) {
if (isEndish(topLevelType) && distance < tapMoveThreshold) {
event = SyntheticUIEvent.getPooled(
eventTypes.touchTap,
topLevelTargetID,
targetInst,
nativeEvent,
nativeEventTarget
);
Expand Down

0 comments on commit f9cf9fd

Please sign in to comment.