addyosmani/backbone.paginator — pull request #163 by jtuulos (2013-03-21 06:56:27+00:00)
Title: Fix sync success arguments on Backbone 1.0.0

On Backbone 1.0.0 the arguments to the `success` callback of the `sync` method were changed again to be compatible with jQuery-style promises. [Here's the relevant Backbone commit](https://github.com/documentcloud/backbone/commit/6e646f1ba71dd889226a8f99f4d3e7e4ed2b706e).

The `sync` method in both Paginator.clientPager and Paginator.requestPager contain a version check which doesn't yet take into account this change. I've changed the version check to only target Backbone 0.9.10 which had a different format for the callback.

All tests pass with Backbone 0.9.9, 0.9.10 and 1.0.0.