PageRenderTime 38ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/public/js/app/collections/Collection.js

https://github.com/miketrexler/Marionette-Require-Boilerplate
JavaScript | 10 lines | 7 code | 1 blank | 2 comment | 0 complexity | 2c30b3de60abaef5319a34c53704d7ff MD5 | raw file
Possible License(s): MIT
  1. define(["jquery","backbone","models/Model"],
  2. function($, Backbone, Model) {
  3. // Creates a new Backbone Collection class object
  4. var Collection = Backbone.Collection.extend({
  5. // Tells the Backbone Collection that all of it's models will be of type Model (listed up top as a dependency)
  6. model: Model
  7. });
  8. return Collection;
  9. });