mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Clarify collection sync events in event catalog
This commit is contained in:
@@ -852,9 +852,9 @@ view.stopListening(model);
|
||||
<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, options) — when a model is <a href="#Model-destroy">destroyed</a>. </li>
|
||||
<li><b>"request"</b> (model, xhr, options) — when a model (or collection) has started a request to the server. </li>
|
||||
<li><b>"sync"</b> (model, resp, options) — when a model (or collection) has been successfully synced with the server. </li>
|
||||
<li><b>"error"</b> (model, xhr, options) — when a model's <a href="#Model-save">save</a> call fails on the server. </li>
|
||||
<li><b>"request"</b> (model, collection, xhr, options) — when a model or collection has started a request to the server. </li>
|
||||
<li><b>"sync"</b> (model, collection, resp, options) — when a model or collection has been successfully synced with the server. </li>
|
||||
<li><b>"error"</b> (model, collection, xhr, options) — when a model's <a href="#Model-save">save</a> call fails on the server. </li>
|
||||
<li><b>"invalid"</b> (model, error, options) — when a model's <a href="#Model-validate">validation</a> fails on the client. </li>
|
||||
<li><b>"route:[name]"</b> (params) — Fired by the router when a specific route is matched.</li>
|
||||
<li><b>"route"</b> (route, params) — Fired by the router when <i>any</i> route has been matched.</li>
|
||||
|
||||
Reference in New Issue
Block a user