Skip to content

Commit

Permalink
Remove unnecessary function bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Valadas committed Feb 25, 2018
1 parent 4ee9a86 commit 2c4ff02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function(WrappedComponent) {
valid: true,
value: this.props.form.initialValue
};
this.checked = this.checked.bind(this);
this.handleChange = this.handleChange.bind(this);
this.validate = this.validate.bind(this);
}
Expand Down
4 changes: 0 additions & 4 deletions src/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,9 @@ class Form extends React.Component {
constructor(props) {
super(props);
this.state = {valid: true};
this.getField = this.getField.bind(this);
this.getCheckboxValues = this.getCheckboxValues.bind(this);
this.handleSubmit = this.handleSubmit.bind(this);
this.registerField = this.registerField.bind(this);
this.unregisterField = this.unregisterField.bind(this);
this.validate = this.validate.bind(this);
this.values = this.values.bind(this);
}

componentWillMount() {
Expand Down

0 comments on commit 2c4ff02

Please sign in to comment.