Skip to content

Instantly share code, notes, and snippets.

// includes bindings for fetching/fetched
PaginatedCollection = Backbone.Collection.extend({
fetch: function(options) {
options || (options = {});
var self = this,
success = options.success;
options.success = function(resp) {
self.trigger("fetched");
if(success) { success(self, resp); }