Replaced - with _ in GUI

This was SVN commit r1604.
This commit is contained in:
Ykkrosh
2005-01-01 12:06:17 +00:00
parent fb14adc68b
commit f9c51d8ec7
104 changed files with 677 additions and 685 deletions
@@ -76,12 +76,6 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsval id, jsval
// Handle all other properties
else
{
// Allow e.g. "cell_id" as a synonym for "cell-id", because
// object.cell_id is nicer than object["cell-id"] (and object.cell-id
// is a syntax error)
propName.Replace("_", "-");
// Retrieve the setting's type (and make sure it actually exists)
EGUISettingType Type;
if (e->GetSettingType(propName, Type) != PS_OK)
@@ -254,12 +248,6 @@ JSBool JSI_IGUIObject::setProperty(JSContext* cx, JSObject* obj, jsval id, jsval
return JS_TRUE;
}
// Allow e.g. "cell_id" as a synonym for "cell-id", because
// object.cell_id is nicer than object["cell-id"] (and object.cell-id
// is a syntax error)
propName.Replace("_", "-");
// Retrieve the setting's type (and make sure it actually exists)
EGUISettingType Type;
if (e->GetSettingType(propName, Type) != PS_OK)