/lib/collection.js
JavaScript | 19 lines | 7 code | 3 blank | 9 comment | 0 complexity | fe1728187e265a54bba83ec840335b4a MD5 | raw file
- /** 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;
- };