Skip to content

Commit

Permalink
lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
usulpro committed Sep 16, 2016
1 parent 26bba1b commit 31917e8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/MaterialColorPicker.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,27 +329,27 @@ export default class MaterialColorPicker extends React.Component {
return (e) => {
const { nativeEvent, persist } = e;
this.setState({ hoveredTone: toneName }, () => {
const event = this.createEvent({nativeEvent, persist}, 'hover');
const event = this.createEvent({ nativeEvent, persist }, 'hover');
this.onHover(event);
});
};
}

hoverSat(satName) {
return (e) => {
const {nativeEvent, persist} = e;
this.setState({ hoveredSat: satName }, ()=>{
const event = this.createEvent({nativeEvent, persist}, 'hover');
const { nativeEvent, persist } = e;
this.setState({ hoveredSat: satName }, () => {
const event = this.createEvent({ nativeEvent, persist }, 'hover');
this.onHover(event);
});
};
}

hoverReset() {
return (e) => {
const {nativeEvent, persist} = e;
this.setState({ hoveredTone: '', hoveredSat: '' }, ()=>{
const event = this.createEvent({nativeEvent, persist}, 'hover');
const { nativeEvent, persist } = e;
this.setState({ hoveredTone: '', hoveredSat: '' }, () => {
const event = this.createEvent({ nativeEvent, persist }, 'hover');
this.onHover(event);
});
};
Expand Down

0 comments on commit 31917e8

Please sign in to comment.