125881: Has() must return true for existing properties (the key exists), which

have a 0 value.
r=dougt, sr=jband
This commit is contained in:
mozilla.BenB%bucksch.org 2002-02-17 10:11:25 +00:00
Родитель 27743a2a68
Коммит c66706ca6c
1 изменённых файлов: 1 добавлений и 5 удалений

Просмотреть файл

@ -152,11 +152,7 @@ NS_IMETHODIMP
nsProperties::Has(const char* prop, PRBool *result)
{
nsCStringKey key(prop);
nsISupports* value = (nsISupports*)nsHashtable::Get(&key);
// XXX this is bogus because it doesn't distinguish between properties
// defined with a value NULL, and undefined properties, but we'll fix
// it later if it becomes a problem
*result = value != nsnull;
*result = nsHashtable::Exists(&key);
return NS_OK;
}