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]; } /*!