diff --git a/source/gui/scripting/JSInterface_IGUIObject.cpp b/source/gui/scripting/JSInterface_IGUIObject.cpp index 5084a1e143..5c5a48ad33 100755 --- a/source/gui/scripting/JSInterface_IGUIObject.cpp +++ b/source/gui/scripting/JSInterface_IGUIObject.cpp @@ -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)