mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-22 13:28:22 -05:00
Update event args for "destroy" and "sync".
This commit is contained in:
@@ -3266,8 +3266,8 @@ var model = localBackbone.Model.extend(...);
|
||||
<li><b>"reset"</b> (collection, options) — when the collection's entire contents have been replaced. </li>
|
||||
<li><b>"change"</b> (model, options) — when a model's attributes have changed. </li>
|
||||
<li><b>"change:[attribute]"</b> (model, value, options) — when a specific attribute has been updated. </li>
|
||||
<li><b>"destroy"</b> (model, collection) — when a model is <a href="#Model-destroy">destroyed</a>. </li>
|
||||
<li><b>"sync"</b> (model, collection) — triggers whenever a model has been successfully synced to the server. </li>
|
||||
<li><b>"destroy"</b> (model, collection, options) — when a model is <a href="#Model-destroy">destroyed</a>. </li>
|
||||
<li><b>"sync"</b> (model, resp, options) — triggers whenever a model has been successfully synced to the server. </li>
|
||||
<li><b>"error"</b> (model, collection) — when a model's validation fails, or a <a href="#Model-save">save</a> call fails on the server. </li>
|
||||
<li><b>"route:[name]"</b> (router) — when one of a router's routes has matched. </li>
|
||||
<li><b>"all"</b> — this special event fires for <i>any</i> triggered event, passing the event name as the first argument. </li>
|
||||
|
||||
Reference in New Issue
Block a user