HOME > > >

Events

ビルトインイベント

add (model, collection, options)when a model is added to a collection.
remove (model, collection, options)when a model is removed from a collection.
reset (collection, options)when the collection's entire contents have been replaced.
sort (collection, options)when the collection has been re-sorted.
change (model, options)when a model's attributes have changed.
change:[attribute] (model, value, options)when a specific attribute has been updated.
destroy (model, collection, options)when a model is destroyed.
request (model, xhr, options)when a model (or collection) has started a request to the server.
sync (model, resp, options)when a model (or collection) has been successfully synced with the server.
error (model, xhr, options)when a model's save call fails on the server.
invalid (model, error, options)when a model's validation fails on the client.
route:[name] (params)Fired by the router when a specific route is matched.
route (router, route, params)Fired by history (or router) when any route has been matched.
all"this special event fires for any triggered event, passing the event name as the first argument.