webcreate/infinite-ajax-scroll — pull request #24 by bprotas (2012-07-13 19:30:53+00:00)
Title: Add a beforePageChange event handler that allows the application an opportunity to cancel pagination

Sometimes it is necessary to temporarily disable scrolls loading new pages of content based on the state of the application.

For example, we have a case where our scrollable content is on one tab, but if the user is on another tab, the scrolls were causing new content to load anyway.

This patch adds an event handler similar to onPageChange, but that is called before the page change, that gives the application a chance to examine its current state and cancel the pagination if necessary by returning false.