Skip to content

Commit

Permalink
Fixes jashkenas#2866 -- inconsistent variable naming in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 9, 2013
1 parent 8fffbaa commit 19dcf9f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ <h2 id="Events">Backbone.Events</h2>
<li><b>"destroy"</b> (model, collection, options) &mdash; when a model is <a href="#Model-destroy">destroyed</a>. </li>
<li><b>"request"</b> (model, collection, xhr, options) &mdash; when a model or collection has started a request to the server. </li>
<li><b>"sync"</b> (model, collection, resp, options) &mdash; when a model or collection has been successfully synced with the server. </li>
<li><b>"error"</b> (model, collection, xhr, options) &mdash; when a model's <a href="#Model-save">save</a> call fails on the server. </li>
<li><b>"error"</b> (model, collection, resp, options) &mdash; when a model's <a href="#Model-save">save</a> call fails on the server. </li>
<li><b>"invalid"</b> (model, error, options) &mdash; when a model's <a href="#Model-validate">validation</a> fails on the client. </li>
<li><b>"route:[name]"</b> (params) &mdash; Fired by the router when a specific route is matched.</li>
<li><b>"route"</b> (route, params) &mdash; Fired by the router when <i>any</i> route has been matched.</li>
Expand Down Expand Up @@ -1295,8 +1295,7 @@ <h2 id="Model">Backbone.Model</h2>

<p>
<b>save</b> accepts <tt>success</tt> and <tt>error</tt> callbacks in the
options hash, which are passed <tt>(model, response, options)</tt> and
<tt>(model, xhr, options)</tt> as arguments, respectively.
options hash, which will passed the arguments <tt>(model, response, options)</tt>.
If a server-side validation fails, return a non-<tt>200</tt>
HTTP response code, along with an error response in text or JSON.
</p>
Expand All @@ -1313,8 +1312,7 @@ <h2 id="Model">Backbone.Model</h2>
<a href="http://api.jquery.com/jQuery.ajax/#jqXHR">jqXHR</a> object, or
<tt>false</tt> if the model <a href="#Model-isNew">isNew</a>. Accepts
<tt>success</tt> and <tt>error</tt> callbacks in the options hash, which
are passed <tt>(model, response, options)</tt> and <tt>(model, xhr, options)</tt>
as arguments, respectively.
will be passed <tt>(model, response, options)</tt>.
Triggers a <tt>"destroy"</tt> event on the model, which will bubble up
through any collections that contain it, a <tt>"request"</tt> event as it
begins the Ajax request to the server, and a <tt>"sync"</tt> event, after
Expand Down

0 comments on commit 19dcf9f

Please sign in to comment.