mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 02:13:40 +00:00
Remove references to NSArray
This commit is contained in:
@@ -447,7 +447,7 @@ kvoOperators["sum"] = function sumOperator(self, _cmd, param)
|
||||
|
||||
-(void)addObserver:(id)observer forKeyPath:(CPString)aKeyPath options:(unsigned)options context:(id)context
|
||||
{
|
||||
if ([isa instanceMethodForSelector:_cmd]==[NSArray instanceMethodForSelector:_cmd])
|
||||
if ([isa instanceMethodForSelector:_cmd] === [CPArray instanceMethodForSelector:_cmd])
|
||||
[CPException raise:CPInvalidArgumentException reason:"Unsupported method on CPArray"];
|
||||
else
|
||||
[super addObserver:observer forKeyPath:aKeyPath options:options context:context];
|
||||
@@ -455,7 +455,7 @@ kvoOperators["sum"] = function sumOperator(self, _cmd, param)
|
||||
|
||||
-(void)removeObserver:(id)observer forKeyPath:(CPString)aKeyPath
|
||||
{
|
||||
if ([isa instanceMethodForSelector:_cmd]==[NSArray instanceMethodForSelector:_cmd])
|
||||
if ([isa instanceMethodForSelector:_cmd] === [CPArray instanceMethodForSelector:_cmd])
|
||||
[CPException raise:CPInvalidArgumentException reason:"Unsupported method on CPArray"];
|
||||
else
|
||||
[super removeObserver:observer forKeyPath:aKeyPath];
|
||||
|
||||
Reference in New Issue
Block a user