addyosmani/backbone.paginator — pull request #41 by SBoudrias (2012-06-05 01:21:30+00:00)
Title: Add callback on requestPager calls + whitespace

Methods changed are: requestNextPage, requestPreviousPage and pager from requestPager.

This commit add more consistency with the Backbone collections default .fetch() method
(http://documentcloud.github.com/backbone/#Collection-fetch) by letting
the user set options and by returning a jqXHR.

This will make it easier for user to:
* set {add: true} options (for example to use with infinite scroll)
* set callback on server response / page change

-----

I've had some trouble with whitespace on windows and the new Github for windows app. I add a .gitattributes file to normalize it, but I haven't been able to workaround this for the commit so it's pretty messy whitespace wise. Maybe you'd prefer to just recommit right changes from a mac machine, I only changed the three methods mentioned above (requestNextPage, requestPreviousPage and pager from requestPager).