mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 04:52:16 +00:00
Replaced - with _ in GUI
This was SVN commit r1604.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user