From 9cc11918d3fe7a953959a198cbc1e7dee8ed7bb1 Mon Sep 17 00:00:00 2001 From: Ykkrosh Date: Tue, 29 Mar 2005 23:34:58 +0000 Subject: [PATCH] Fixed small bug in GUI event-handler setting This was SVN commit r2081. --- source/gui/scripting/JSInterface_IGUIObject.cpp | 2 ++ 1 file changed, 2 insertions(+) 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)