This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var OUTPUT_JS_FILENAME = '../media/partner/js/widgets.js' | |
var OUTPUT_CSS_FILENAME = '../media/partner/css/widgets.css' | |
var OUTPUT_HTML_PATH = 'templates' | |
var fs = require('fs') | |
var jade = require('jade') | |
var stylus = require('stylus'); | |
var cs = require('coffee-script'); | |
var watch = require('watch'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// includes bindings for fetching/fetched | |
var PaginatedCollection = Backbone.Collection.extend({ | |
initialize: function() { | |
_.bindAll(this, 'parse', 'url', 'pageInfo', 'nextPage', 'previousPage'); | |
typeof(options) != 'undefined' || (options = {}); | |
this.page = 1; | |
typeof(this.perPage) != 'undefined' || (this.perPage = 10); | |
}, | |
fetch: function(options) { |