/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
- // Collection.js
- // -------------
- define(["jquery","backbone","models/BaseModel"],
-
- function($, Backbone, Model) {
-
- // Creates a new Backbone Collection class object
- var Collection = Backbone.Collection.extend({
-
- // Tells the Backbone Collection that all of it's models will be of type Model (listed up top as a dependency)
- model: Model
-
- });
-
- // Returns the Model class
- return Collection;
-
- }
-
- );