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.defaults
  • References/JavaScript/Backbone/Model

defaultsmodel.defaults or model.defaults() The defaults hash (or function) can be used to specify the default attributes for

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

pairs

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

hasmodel.has(attribute) Returns true if the attribute is set to a non-null or non-undefined value.

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

urlmodel.url() Returns the relative URL where the model's resource would be located on the server. If your models are located somewhere

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

hasChangedmodel.hasChanged([attribute]) Has the model changed since its last

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

changedAttributesmodel.changedAttributes([attributes]) Retrieve a hash of only the model's attributes that have changed since the

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
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