view.setElement
  • References/JavaScript/Backbone/View

setElementview.setElement(element) If you'd like to apply a Backbone view to a different DOM element, use setElement, which

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

removeview.remove() Removes a view and its el from the DOM, and calls

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

fetchmodel.fetch([options]) Merges the model's state with attributes fetched from the server by delegating to

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
collection.pop
  • References/JavaScript/Backbone/Collection

popcollection.pop([options]) Remove and return the last model from a collection. Takes the same options as

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
Backbone.listenToOnce
  • References/JavaScript/Backbone/Events

listenToOnceobject.listenToOnce(other, event, callback) Just like

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

clonecollection.clone() Returns a new instance of the collection with an identical list of models.

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

sortcollection.sort([options]) Force a collection to re-sort itself. You don't need to call this under normal circumstances, as a

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

getmodel.get(attribute) Get the current value of an attribute from the model. For example: note.get("title")

2025-01-10 15:47:30