Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
Replace 'false' event handlers with 'undefined'
Browse files Browse the repository at this point in the history
  • Loading branch information
apollocoder committed Jan 22, 2018
1 parent 1b45661 commit a7b941b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ export default class PullRefresh extends Component {
<Container
ref='container'
{...props}
onScroll ={!disabled && ::this.onScroll}
onMouseDown ={!disabled && ::this.onDown}
onMouseUp ={!disabled && ::this.onUp}
onMouseMove ={!disabled && ::this.onMove}
onTouchStart={!disabled && ::this.onDown}
onTouchEnd ={!disabled && ::this.onUp}
onTouchMove ={!disabled && ::this.onMove}
onScroll ={disabled ? undefined : ::this.onScroll}
onMouseDown ={disabled ? undefined : ::this.onDown}
onMouseUp ={disabled ? undefined : ::this.onUp}
onMouseMove ={disabled ? undefined : ::this.onMove}
onTouchStart={disabled ? undefined : ::this.onDown}
onTouchEnd ={disabled ? undefined : ::this.onUp}
onTouchMove ={disabled ? undefined : ::this.onMove}
>
{ children }
</Container>
Expand Down

0 comments on commit a7b941b

Please sign in to comment.