mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-19 13:09:22 +00:00
Fixed "objectForKey:" returning undefined instead of nil.
Reviewed by tolmasky. [#194 state:resolved responsible:tlrobinson]
This commit is contained in:
1 parent
35fc44e183
commit
5b7d6e2e1f
1 file changed
+3
-3
@@ -305,9 +305,9 @@
|
||||
*/
|
||||
- (id)objectForKey:(CPString)aKey
|
||||
{
|
||||
// We should really do this with inlining or something of that nature.
|
||||
return _buckets[aKey];
|
||||
//return dictionary_getValue(self, aKey);
|
||||
var object = _buckets[aKey];
|
||||
|
||||
return (object === undefined) ? nil : object;
|
||||
}
|
||||
/*
|
||||
Instance.objectsForKeys(keys, aNotFoundMarker)
|
||||
|
||||
Reference in new issue
Block a user