Skip to content

Commit bf3faee

Browse files
committed
Updated Waypoints example
1 parent 3b723b4 commit bf3faee

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ require( 'waypoints/lib/noframework.waypoints.js' )
5555
const el = document.querySelector( '.counter' )
5656
new Waypoint( {
5757
element: el,
58-
handler: () => { counterUp( el ) },
58+
handler: function() {
59+
counterUp( el )
60+
this.destroy()
61+
},
5962
offset: 'bottom-in-view',
6063
} )
6164
```

0 commit comments

Comments
 (0)