Collections

AJAX Abstraction for Lists of Resources

initialize

The initialize() method is called at the end of collection instantiation, and is useful for storing data that other methods will need.

Default Implementation

The default implementation looks like this:

initialize: function(attributes, options) {
  // does nothing
},

Usage

One use for initialize() is to construct nested URLs. You can read more about that in the url() documentation here.