extendBackbone.Model.extend(properties, [classProperties]) To create a Model class of your own, you extend Backbone.Model
previousAttributesmodel.previousAttributes() Return a copy of the model's previous attributes. Useful for getting a diff between
getcollection.get(id) Get a model from a collection, specified by an
lastIndexOf
every (all)
constructor / initializenew Backbone.Collection([models], [options]) When creating a Collection, you may choose to pass in the initial
isNewmodel.isNew() Has this model been saved to the server yet? If the model does not yet have an id, it is considered
sample
elview.el All views have a DOM element at all times (the el property), whether they've already been inserted into the page
"request" (model_or_collection, xhr, options) â when a model or collection has started a request to the server.
Page 1 of 16