mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-18 16:33:31 +00:00
fixed: fromObject:(id)object index:(id)anIndex failed to raise if argument was not CPDictionary or CPArray
This commit is contained in:
@@ -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