PageRenderTime 51ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/collection.js

https://github.com/mekanics/barefoot
JavaScript | 19 lines | 7 code | 3 blank | 9 comment | 0 complexity | fe1728187e265a54bba83ec840335b4a MD5 | raw file
  1. /** Class: Barefoot.Collection
  2. * For the moment, the Barefoot collection does not introduce any new
  3. * functionalities to Backbones collection. But to keep things straight when
  4. * building your application with barefoot, <Barefoot.Collection> is also
  5. * available :)
  6. *
  7. * If you are interested into how a collection is synced on the server, have a
  8. * look at <Barefoot.APIAdapter.Server.sync>
  9. */
  10. var Backbone = require('backbone')
  11. , _ = require('underscore');
  12. var Collection = Backbone.Collection.extend({});
  13. module.exports = function(mixin) {
  14. _.extend(Collection.prototype, mixin);
  15. return Collection;
  16. };