paulirish/infinite-scroll — pull request #538 by Placinta (2014-06-04 07:15:45+00:00)
Title: Add responseText and pluginInstance to callback options array.

I've added additional parameters to the opts array, to let callbacks have access to the original Ajax response text, and the plugin instance.

Specifically this can be useful when you want to try and find "pager next" links in the response Text, and if there is no next link, tell the plugin instance that there are no more pages available, and that the current new page is the last one. This will stop the plugin from creating one more Load More button, when we already know no more new pages are available.