Collections
AJAX Abstraction for Lists of Resources
AJAX Abstraction for Lists of Resources
The initialize()
method is called at the end of collection instantiation, and is useful for storing data that other methods will need.
The default implementation looks like this:
initialize: function(attributes, options) {
// does nothing
},
One use for initialize()
is to construct nested URLs. You can read more about that in the url()
documentation here.