metafizzy / metafizzy/infinite-scroll
How to get instance of already initialized plugin?
Open
- Dominant language
- HTML
- Stars
- 7.5k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
1) How to get instance, not REinitialize!
this variant not working
$('.shop-container .products').data('infiniteScroll');
2) How to check is last page inside document.addEventListener('scroll', function() {}); ?
Contributor guide
Research direction
Start with the plugin's existing API documentation and the initialization path related to $('.shop-container .products').data('infiniteScroll'). Check how an initialized instance is exposed and how end-of-content state is represented during the scroll listener flow. Done means the supported instance-access and last-page check are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, jquery
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100