airbnb/infinity — pull request #11 by DeaconDesperado (2012-08-22 20:22:06+00:00)
Title: Optional more callback

I previously had confused the `lazy` callback for the functionality this pull request now adds.

Scrolling to the bottom of the ListView will trigger a check to the last of its pages to check if the last of that pages items is onscreen. If the item is onscreen, and a callback function for `more` was supplied to the ListView constructor, that view will call its `more` callback.

Since the context of `this` in the more callback refers to the ListView itself, `this.append` can be called from within the `more` callback to add more items, whether they come from an ajax call or some other static data source.

I left preloader logic out pending feedback from the original devs.