Skip to content

Commit

Permalink
Updated Waypoints example
Browse files Browse the repository at this point in the history
  • Loading branch information
bfintal committed Jan 3, 2019
1 parent 3b723b4 commit bf3faee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ require( 'waypoints/lib/noframework.waypoints.js' )
const el = document.querySelector( '.counter' )
new Waypoint( {
element: el,
handler: () => { counterUp( el ) },
handler: function() {
counterUp( el )
this.destroy()
},
offset: 'bottom-in-view',
} )
```

0 comments on commit bf3faee

Please sign in to comment.