collection.reset
  • References/JavaScript/Backbone/Collection

resetcollection.reset([models], [options]) Adding and removing models one at a time is all well and good, but sometimes you have

2025-01-10 15:47:30
model.changed
  • References/JavaScript/Backbone/Model

changedmodel.changed The changed property is the internal hash containing all the attributes that have changed since its last

2025-01-10 15:47:30
model.sync
  • References/JavaScript/Backbone/Model

syncmodel.sync(method, model, [options]) Uses Backbone.sync

2025-01-10 15:47:30
update event
  • References/JavaScript/Backbone/Events

"update" (collection, options) â single event triggered after any number of models have been added or removed from a collection.

2025-01-10 15:47:30
model.clear
  • References/JavaScript/Backbone/Model

clearmodel.clear([options]) Removes all attributes from the model, including the id attribute. Fires a "change"

2025-01-10 15:47:30
model.clone
  • References/JavaScript/Backbone/Model

clonemodel.clone() Returns a new instance of the model with identical attributes.

2025-01-10 15:47:30
collection.models
  • References/JavaScript/Backbone/Collection

modelscollection.models Raw access to the JavaScript array of models inside of the collection. Usually you'll want to use get

2025-01-10 15:47:30
model.escape
  • References/JavaScript/Backbone/Model

escapemodel.escape(attribute) Similar to get, but returns

2025-01-10 15:47:30
model.validationError
  • References/JavaScript/Backbone/Model

validationErrormodel.validationError The value returned by validate

2025-01-10 15:47:30
collection.contains
  • References/JavaScript/Backbone/Collection

contains (includes)

2025-01-10 15:47:30