Skip to content

Commit

Permalink
Remove unused callbacks when setting state (apache#4015)
Browse files Browse the repository at this point in the history
  • Loading branch information
betodealmeida authored and mistercrunch committed Dec 7, 2017
1 parent 9677785 commit a11965f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ export default class DateFilterControl extends React.Component {
}
}
onControlChange(target, opt) {
this.setState({ [target]: opt.value }, this.onChange);
this.setState({ [target]: opt.value });
}
onNumberChange(event) {
this.setState({ num: event.target.value }, this.onChange);
this.setState({ num: event.target.value });
}
onFreeChange(event) {
this.setState({ free: event.target.value }, this.onChange);
this.setState({ free: event.target.value });
}
setType(type) {
this.setState({ type }, this.onChange);
this.setState({ type });
}
setValue(val) {
this.setState({ type: 'free', free: val }, this.onChange);
this.setState({ type: 'free', free: val });
this.close();
}
setDatetime(dttm) {
this.setState({ dttm: dttm.format().substring(0, 19) }, this.onChange);
this.setState({ dttm: dttm.format().substring(0, 19) });
}
close() {
let val;
Expand Down

0 comments on commit a11965f

Please sign in to comment.