Skip to content

Commit

Permalink
Update documentation to reflect #3966
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonggrijp committed Feb 25, 2022
1 parent 3b358a2 commit b667a2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1827,7 +1827,7 @@ <h2 id="Collection">Backbone.Collection</h2>
</pre>

<p id="Collection-modelId">
<b class="header">modelId</b><code>collection.modelId(attrs)</code>
<b class="header">modelId</b><code>collection.modelId(attrs, idAttribute)</code>
<br />
Override this method to return the value the collection will use to
identify a model given its attributes. Useful for combining models from
Expand All @@ -1836,11 +1836,11 @@ <h2 id="Collection">Backbone.Collection</h2>
</p>

<p>
By default returns the value of the attributes'
By default returns the value of the given
<a href="#Model-idAttribute"><tt>idAttribute</tt></a>
from the collection's model class or failing that, <tt>id</tt>. If
within the <tt>attrs</tt>, or failing that, <tt>id</tt>. If
your collection uses a <a href="#Collection-model">model factory</a> and
those models have an <tt>idAttribute</tt> other than <tt>id</tt> you must
the id ranges of those models might collide, you must
override this method.
</p>

Expand Down

0 comments on commit b667a2d

Please # to comment.