/public/js/app/collections/Collection.js
JavaScript | 10 lines | 7 code | 1 blank | 2 comment | 0 complexity | 2c30b3de60abaef5319a34c53704d7ff MD5 | raw file
Possible License(s): MIT
- define(["jquery","backbone","models/Model"],
- 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
- });
- return Collection;
- });