mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-14 04:24:29 +00:00
fixed: fromObject:(id)object index:(id)anIndex failed to raise if argument was not CPDictionary or CPArray
This commit is contained in:
1 parent
ad7c88fb45
commit
8550abadef
1 file changed
+1
-1
@@ -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