Skip to content

Commit

Permalink
Merge branch 'master' of git@github.com:280north/cappuccino
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Robinson committed Nov 14, 2008
2 parents ba43925 + ea0c9af commit ea5221b
Show file tree
Hide file tree
Showing 4 changed files with 1,192 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Foundation/CPArray.j
Expand Up @@ -461,9 +461,9 @@
*/
- (unsigned)indexOfObject:(id)anObject sortedByFunction:(Function)aFunction context:(id)aContext
{
if (!aFunction || !anObject)
if (!aFunction || anObject === undefined)
return CPNotFound;

var mid, c, first = 0, last = length - 1;
while (first <= last)
{
Expand Down

0 comments on commit ea5221b

Please sign in to comment.