Fixed "objectForKey:" returning undefined instead of nil.

Reviewed by tolmasky.

[#194 state:resolved responsible:tlrobinson]
This commit is contained in:
Tom Robinson committed 2009-01-03 21:08:46 -08:00
1 parent 35fc44e183
commit 5b7d6e2e1f
1 file changed
+3 -3
+3 -3
View File
@@ -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)