Model.extend
  • References/JavaScript/Backbone/Model

extendBackbone.Model.extend(properties, [classProperties]) To create a Model class of your own, you extend Backbone.Model

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

previousAttributesmodel.previousAttributes() Return a copy of the model's previous attributes. Useful for getting a diff between

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

getcollection.get(id) Get a model from a collection, specified by an

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

lastIndexOf

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

every (all)

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

constructor / initializenew Backbone.Collection([models], [options]) When creating a Collection, you may choose to pass in the initial

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

isNewmodel.isNew() Has this model been saved to the server yet? If the model does not yet have an id, it is considered

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

sample

2025-01-10 15:47:30
view.el
  • References/JavaScript/Backbone/View

elview.el All views have a DOM element at all times (the el property), whether they've already been inserted into the page

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

"request" (model_or_collection, xhr, options) â when a model or collection has started a request to the server.

2025-01-10 15:47:30