mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +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:
1 parent
a7ca917abf
commit
3eea14abe4
1 file changed
+2
-2
@@ -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