1
0
forked from 0ad/0ad

Fixed small bug in GUI event-handler setting

This was SVN commit r2081.
This commit is contained in:
Ykkrosh 2005-03-29 23:34:58 +00:00
parent a1fe270ff4
commit 9cc11918d3

View File

@ -273,6 +273,8 @@ JSBool JSI_IGUIObject::setProperty(JSContext* cx, JSObject* obj, jsval id, jsval
CStr eventName (CStr(propName.substr(2)).LowerCase());
e->m_ScriptHandlers[eventName] = func;
return JS_TRUE;
}
// Retrieve the setting's type (and make sure it actually exists)