PageRenderTime 45ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://github.com/Reflen/spinel
JavaScript | 20 lines | 8 code | 7 blank | 5 comment | 0 complexity | 1699bc70a596f1ca87d2ebd615982d41 MD5 | raw file
  1. // Collection.js
  2. // -------------
  3. define(["jquery","backbone","models/BaseModel"],
  4. function($, Backbone, Model) {
  5. // Creates a new Backbone Collection class object
  6. var Collection = Backbone.Collection.extend({
  7. // Tells the Backbone Collection that all of it's models will be of type Model (listed up top as a dependency)
  8. model: Model
  9. });
  10. // Returns the Model class
  11. return Collection;
  12. }
  13. );