mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 01:46:34 +00:00
Attempt to fix GUI script interaction with JITs.
Simplify some other GUI script interface code. This was SVN commit r8657.
This commit is contained in:
@@ -99,9 +99,7 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsid id, jsval*
|
||||
if (parent)
|
||||
{
|
||||
// If the object isn't parentless, return a new object
|
||||
JSObject* entity = JS_NewObject(cx, &JSI_IGUIObject::JSI_class, NULL, NULL);
|
||||
JS_SetPrivate(cx, entity, parent);
|
||||
*vp = OBJECT_TO_JSVAL(entity);
|
||||
*vp = OBJECT_TO_JSVAL(parent->GetJSObject());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user