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

Language Javascript Lines 20
MD5 Hash 1699bc70a596f1ca87d2ebd615982d41
Repository https://github.com/Reflen/spinel.git View Raw File View Project SPDX
| Open JSFiddle
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
// 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;

  }

);
Back to Top