model.omit
  • References/JavaScript/Backbone/Model

omit

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

constructor / initializenew Model([attributes], [options]) When creating an instance of a model, you can pass in the initial values

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

sample

2025-01-10 15:47:30
Router.extend
  • References/JavaScript/Backbone/Router

extendBackbone.Router.extend(properties, [classProperties]) Get started by creating a custom router class. Define actions that are

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

constructor / initializenew Router([options]) When creating a new router, you may pass its

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

setcollection.set(models, [options]) The set method performs a "smart" update of the collection with the passed list of models

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