model.cid

cidmodel.cid A special property of models, the cid or client id is a unique identifier automatically assigned to all models when they're first created. Client ids are handy when the model has not yet been saved to the server, and does not yet have its eventual true id, but already needs to be visible in the UI.

model.changedAttributes

changedAttributesmodel.changedAttributes([attributes]) Retrieve a hash of only the model's attributes that have changed since the last set, or false if there are none. Optionally, an external attributes hash can be passed in, returning the attributes in that hash which differ from the model. This can be used to figure out which portions of a view should be updated, or what calls need to be made to sync the changes to the server.

model.changed

changedmodel.changed The changed property is the internal hash containing all the attributes that have changed since its last set. Please do not update changed directly since its state is internally maintained by set. A copy of changed can be acquired from changedAttributes.

model.chain

chain

model.attributes

attributesmodel.attributes The attributes property is the internal hash containing the model's state â usually (but not necessarily) a form of the JSON object representing the model data on the server. It's often a straightforward serialization of a row from the database, but it could also be client-side computed state. Please use set to update the attributes instead of modifying them directly. If you'd like to retrieve and munge a copy of the model's attributes, use _.clone(model.attrib

Model

constructor / initializenew Model([attributes], [options]) When creating an instance of a model, you can pass in the initial values of the attributes, which will be set on the model. If you define an initialize function, it will be invoked when the model is created. new Book({ title: "One Thousand and One Nights", author: "Scheherazade" }); In rare cases, if you're looking to get fancy, you may want to override constructor, which allows you to replace the actual constructor function f

invalid event

"invalid" (model, error, options) â when a model's validation fails on the client.

error event

"error" (model_or_collection, response, options) â when a model's or collection's request to the server has failed.

destroy event

"destroy" (model, collection, options) â when a model is destroyed.

collection.without

without