Backbone
  • References/JavaScript/Backbone/Utility

Backbone.$Backbone.$ = $; If you have multiple copies of jQuery on the page, or simply want to tell Backbone to use

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

delegateEventsdelegateEvents([events]) Uses jQuery's on function to provide declarative callbacks for DOM events within

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

size

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

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

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

idmodel.id A special property of models, the id is an arbitrary string (integer id or UUID). If you set the id in the

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

modelIdcollection.modelId(attrs) Override this method to return the value the collection will use to identify a model given its attributes

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

shiftcollection.shift([options]) Remove and return the first model from a collection. Takes the same options as

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

reject

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

unshiftcollection.unshift(model, [options]) Add a model at the beginning of a collection. Takes the same options as

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

pluckcollection.pluck(attribute) Pluck an attribute from each model in the collection. Equivalent to calling map and

2025-01-10 15:47:30