mozilla/yogafire — pull request #36 by ngokevin (2014-05-12 23:57:12+00:00)
Title: add localforaged pagination

Flow:

- view kicks off to builder to render page
- initial page is rendered, localforage extensions asynchronously fetches data
- the localforage extension registers an event handler to the More Button, attaches the cached API response
to the context. This includes the API's response.meta.
- data is fetched and the partial template is rendered with the More Button
- the More Button has data attributes describing what the next page to fetch is, this is done by calculating ```response.meta.offset / response.meta.limit + 1```.
- when clicking that, the localforage extension runs again, fetching the next page from localforage, and injects the data into the listing