paulirish/infinite-scroll — pull request #106 by ryleyb (2011-12-09 01:05:13+00:00)
Title: Add a local mode

Force the nearbottom behavior to return the plugin's return value, and then use that to implement a local mode like the docs say should exist.

Use this by including behaviors/local.js in your script and then specify behavior:'local' in your options.

Additionally, you need to specify what the container is that will be scrolling (this defaults to the window). I used options.binder for this, i.e. binder:'#myscrollingdiv'

I'm sure something like this is in the works, as I just ripped code from other githubs to make it... but if it happens to be what you were going to do anyways, wonderful! It also fixes the bug I reported paulirish/infinite-scroll#105