node-barefoot
Version:
Barefoot makes code sharing between browser and server reality. Write your application once and run it on both ends of the wire.
19 lines (16 loc) • 619 B
JavaScript
/** Class: Barefoot.Collection
* For the moment, the Barefoot collection does not introduce any new
* functionalities to Backbones collection. But to keep things straight when
* building your application with barefoot, <Barefoot.Collection> is also
* available :)
*
* If you are interested into how a collection is synced on the server, have a
* look at <Barefoot.APIAdapter.Server.sync>
*/
var Backbone = require('backbone')
, _ = require('underscore');
var Collection = Backbone.Collection.extend({});
module.exports = function(mixin) {
_.extend(Collection.prototype, mixin);
return Collection;
};