Merge remote-tracking branch 'cappuccino/master'

This commit is contained in:
Korthoudt Didier committed 2018-02-27 23:41:34 +01:00
commit f2fe1a7c17
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -209,7 +209,7 @@
[[self mutableArrayValueForKeyPath:aKeyPath] removeObjectsAtIndexes:indexes];
else if (changeKind === CPKeyValueChangeReplacement)
[[self mutableArrayValueForKeyPath:aKeyPath] replaceObjectAtIndexes:indexes withObjects:newValue];
[[self mutableArrayValueForKeyPath:aKeyPath] replaceObjectsAtIndexes:indexes withObjects:newValue];
}
else
{
@@ -220,7 +220,7 @@ var CPSelectorNameKey = @"CPSelectorName",
{
if ([object isKindOfClass:[CPDictionary class]])
return [object objectForKey:anIndex];
else ([object isKindOfClass:[CPArray class]])
else if ([object isKindOfClass:[CPArray class]])
return [object objectAtIndex:anIndex];
[CPException raise:CPInvalidArgumentException reason:@"object[#] requires a CPDictionary or CPArray"];