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
reset event
  • References/JavaScript/Backbone/Events

"reset" (collection, options) â when the collection's entire contents have been reset

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

partition

2025-01-10 15:47:30
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
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
collection.where
  • References/JavaScript/Backbone/Collection

wherecollection.where(attributes) Return an array of all the models in a collection that match the passed attributes. Useful

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

cidmodel.cid A special property of models, the cid or client id is a unique identifier automatically assigned to all models

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

isValidmodel.isValid() Run validate to check the model

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

lastIndexOf

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

indexOf

2025-01-10 15:47:30