Skip to content

Commit

Permalink
Fixes #2833 — document bound comparator woes in the appropriate spot.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed Nov 6, 2013
1 parent ae33e34 commit cf5349d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1917,6 +1917,9 @@ <h2 id="Collection">Backbone.Collection</h2>
"sort" comparator functions take two models, and return <tt>-1</tt> if
the first model should come before the second, <tt>0</tt> if they are of
the same rank and <tt>1</tt> if the first model should come after.
<i>Note that Backbone depends on the arity of your comparator function to
determine between the two styles, so be careful if your comparator function
is bound.</i>
</p>

<p>
Expand Down

1 comment on commit cf5349d

@akre54
Copy link
Collaborator

@akre54 akre54 commented on cf5349d Nov 6, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.