addyosmani/backbone.paginator — pull request #108 by kilink (2012-12-21 20:42:52+00:00)
Title: Allow 'server_api' to be a function that returns an object

I have run into cases where I would like to be able to compute 'server_api' on the fly, such as omitting or adding fields. I could maybe accomplish this with the current behavior of allowing functions as values
in the mapping, but I think it would add more complexity (e.g., I would have to include all fields, and any that I want to omit would have to have callable values that return undefined, and I'm not even sure if that would work).

This pull request adds this simple change, along with a test.