Fix Text + TouchableWithoutFeedback

Summary:
Arrow functions don't have `arguments`...whoops :(

public

Reviewed By: vjeux, ericvicenti

Differential Revision: D2741448

fb-gh-sync-id: 15e9fb0446909e4cbbbb5e30024dde58d872e725
This commit is contained in:
Spencer Ahrens 2015-12-09 17:16:29 -08:00 committed by facebook-github-bot-5
parent 96553cf553
commit 96c9ce811a
1 changed files with 11 additions and 11 deletions

View File

@ -181,35 +181,35 @@ const Text = React.createClass({
}
return setResponder;
},
onResponderGrant: (e: SyntheticEvent, dispatchID: string) => {
onResponderGrant: function(e: SyntheticEvent, dispatchID: string) {
this.touchableHandleResponderGrant(e, dispatchID);
this.props.onResponderGrant &&
this.props.onResponderGrant.apply(this, arguments);
},
onResponderMove: (e: SyntheticEvent) => {
}.bind(this),
onResponderMove: function(e: SyntheticEvent) {
this.touchableHandleResponderMove(e);
this.props.onResponderMove &&
this.props.onResponderMove.apply(this, arguments);
},
onResponderRelease: (e: SyntheticEvent) => {
}.bind(this),
onResponderRelease: function(e: SyntheticEvent) {
this.touchableHandleResponderRelease(e);
this.props.onResponderRelease &&
this.props.onResponderRelease.apply(this, arguments);
},
onResponderTerminate: (e: SyntheticEvent) => {
}.bind(this),
onResponderTerminate: function(e: SyntheticEvent) {
this.touchableHandleResponderTerminate(e);
this.props.onResponderTerminate &&
this.props.onResponderTerminate.apply(this, arguments);
},
onResponderTerminationRequest: (): bool => {
}.bind(this),
onResponderTerminationRequest: function(): bool {
// Allow touchable or props.onResponderTerminationRequest to deny
// the request
var allowTermination = this.touchableHandleResponderTerminationRequest();
if (allowTermination && this.props.onResponderTerminationRequest) {
allowTermination = this.props.onResponderTerminationRequest();
allowTermination = this.props.onResponderTerminationRequest.apply(this, arguments);
}
return allowTermination;
},
}.bind(this),
};
}
newProps = {