mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
tweaking catalog of events
This commit is contained in:
@@ -821,8 +821,8 @@ view.stopListening(model);
|
||||
<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 has been successfully synced with 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"</b> (history) — when any route has been matched. </li>
|
||||
<li><b>"route:[name]"</b> (router) — when one of a router's routes has matched. </li>
|
||||
<li><b>"route:[name]"</b> (params) — Fired by the router when a specific route is matched.</li>
|
||||
<li><b>"route"</b> (router, route, params) — Fired by history when <i>any</i> route has been 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>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user