From e0547483f6ea0d6edc810afc3f01bf3564cdbda5 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Sun, 25 Jul 2010 16:55:55 -0400 Subject: [PATCH] For the methods that don't have context: in their signature, the predicate will receive undefined in the context parameter instead of nil. --- Foundation/CPArray.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/CPArray.j b/Foundation/CPArray.j index cb1103e9d..90a22a1ef 100755 --- a/Foundation/CPArray.j +++ b/Foundation/CPArray.j @@ -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]; } /*!