mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 09:28: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:
1 parent
abda2990ae
commit
e0547483f6
1 file changed
+2
-2
@@ -413,7 +413,7 @@ CPEnumerationReverse = 1 << 1;
|
||||
*/
|
||||
- (unsigned)indexOfObjectPassingTest:(Function)predicate
|
||||
{
|
||||
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:nil];
|
||||
return [self indexOfObjectWithOptions:CPEnumerationNormal passingTest:predicate context:undefined];
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -445,7 +445,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