router.route
  • References/JavaScript/Backbone/Router

routerouter.route(route, name, [callback]) Manually create a route for the router, The route argument may be a

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

resetcollection.reset([models], [options]) Adding and removing models one at a time is all well and good, but sometimes you have

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

forEach (each)

2025-01-10 15:47:30
route:[name] event
  • References/JavaScript/Backbone/Events

"route:[name]" (params) â Fired by the router when a specific route is matched.

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

$ (jQuery)view.$(selector) If jQuery is included on the page, each view has a $ function that runs queries scoped within the

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

"invalid" (model, error, options) â when a model's validation fails on the client.

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

attributesview.attributes A hash of attributes that will be set as HTML DOM element attributes on the view's el (id

2025-01-10 15:47:30
Backbone.noConflict
  • References/JavaScript/Backbone/Utility

Backbone.noConflictvar backbone = Backbone.noConflict(); Returns the Backbone object back to its original value. You

2025-01-10 15:47:30
Backbone.trigger
  • References/JavaScript/Backbone/Events

triggerobject.trigger(event, [*args]) Trigger callbacks for the given event, or space-delimited list of events. Subsequent

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

changedAttributesmodel.changedAttributes([attributes]) Retrieve a hash of only the model's attributes that have changed since the

2025-01-10 15:47:30