sbrunot/deliteful — pull request #4 by wkeese (2014-05-12 21:40:25+00:00)
Title: Pageable store update to override onFetch()

@cjolif, this leverages ibm-js/delite#174 (i.e. that change to delite is needed before this patch can be applied).

The goals of this PR are:

1 Simplifying the Pageable code to leverage delite/Store to run the store query and maintain listeners for changes
2. Avoid rerunning the query (ie, calling `store.filter()`) every time you get a different range of results (i.e. every time you get a new page). In custom user stores, running store.filter() may be an expensive operation.

I did minimal testing (ran `samples/list/pageable_customLoadMessages.html`), and it seems to work, but I may have missed something.