mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-06 23:23:16 +00:00
Merge remote-tracking branch 'cappuccino/master'
This commit is contained in:
commit
f2fe1a7c17
2 files changed
+2
-2
No files matched your search
@@ -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"];
|
||||
|
||||
Reference in new issue
Block a user