imakewebthings / waypoints

Waypoints is a library that makes it easy to execute a function whenever you scroll to an element.
http://imakewebthings.com/waypoints/
10.38k stars 1.33k forks source link

Infinite Scroll documentation incorrect #616

Open L-Burtness opened 4 years ago

L-Burtness commented 4 years ago

The documentation for the Infinite Scroll shortcut (http://imakewebthings.com/waypoints/shortcuts/infinite-scroll/) seems to be incorrect. The example uses a jQuery object for element when in fact, element accepts HTML elements, not jQuery objects. Screen Shot 2020-09-17 at 9 39 12 AM

The acceptable type for input to element is also noted in this GitHub issue from Jun 2015 https://github.com/imakewebthings/waypoints/issues/418#issuecomment-111874962 Screen Shot 2020-09-17 at 9 39 45 AM

It would be great if the documentation could be accurate. Thanks for making this library!