mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-01 21:07:36 +00:00
fix valueForKeyPath: attempting to call valueForKey: on controller markers
This commit is contained in:
1 parent
1e85a054ac
commit
aeb3873f3c
2 files changed
+65
No files matched your search
@@ -178,6 +178,9 @@ var CPObjectAccessorsForClassKey = @"$CPObjectAccessorsForClassKey",
|
||||
remainingKeyPath = aKeyPath.substring(firstDotIndex + 1),
|
||||
value = [self valueForKey:firstKeyComponent];
|
||||
|
||||
if (CPIsControllerMarker(value))
|
||||
return value;
|
||||
|
||||
return [value valueForKeyPath:remainingKeyPath];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user