collection.get

getcollection.get(id) Get a model from a collection, specified by an id, a cid, or by passing in a model. var book = library.get(110);

model.parse

parsemodel.parse(response, options) parse is called whenever a model's data is returned by the server, in fetch, and save. The function is passed the raw response object, and should return the attributes hash to be set on the model. The default implementation is a no-op, simply passing through the JSON response. Override this if you need to work with a preexisting API, or better namespace your responses. If you're working with a Rails backend that has a version prior to 3.1, you'll notice th

Backbone.trigger

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

collection.map

map (collect)

collection.slice

slicecollection.slice(begin, end) Return a shallow copy of this collection's models, using the same options as native Array#slice.

model.has

hasmodel.has(attribute) Returns true if the attribute is set to a non-null or non-undefined value. if (note.has("title")) { ... }

model.previousAttributes

previousAttributesmodel.previousAttributes() Return a copy of the model's previous attributes. Useful for getting a diff between versions of a model, or getting back to a valid state after an error occurs.

view.attributes

attributesview.attributes A hash of attributes that will be set as HTML DOM element attributes on the view's el (id, class, data-properties, etc.), or a function that returns such a hash.

Backbone.listenTo

listenToobject.listenTo(other, event, callback) Tell an object to listen to a particular event on an other object. The advantage of using this form, instead of other.on(event, callback, object), is that listenTo allows the object to keep track of the events, and they can be removed all at once later on. The callback will always be called with object as context. view.listenTo(model, 'change', view.render);

sort event

"sort" (collection, options) â when the collection has been re-sorted.