mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 13:07:02 +00:00
For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil.
This commit is contained in:
committed by
Ross Boucher
parent
a7ca917abf
commit
3eea14abe4
@@ -411,7 +411,7 @@ CPEnumerationReverse = 1 << 1;
|
||||
*/
|
||||
- (unsigned)indexOfObjectPassingTest:(Function)predicate
|
||||
{
|
||||
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:nil];
|
||||
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:undefined];
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -443,7 +443,7 @@ CPEnumerationReverse = 1 << 1;
|
||||
*/
|
||||
- (unsigned)indexOfObjectWithOptions:(CPEnumerationOptions)opts passingTest:(Function)predicate
|
||||
{
|
||||
return [self indexOfObjectWithOptions:opts passingTest:predicate context:nil];
|
||||
return [self indexOfObjectWithOptions:opts passingTest:predicate context:undefined];
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user