src/Builder4/WindowRooView.bjs
[app.Builder.js] / src / Palete / Javascript.vala
index b0a9e33..64a73a1 100644 (file)
@@ -124,7 +124,8 @@ namespace Palete {
                 * then a method is called, with a string argument (json encoded)
                 * 
                 */
-               public void executeFile(string fname, string call_method, string js_data)
+               public string executeFile(string fname, string call_method, string js_data)
+                               throws JavascriptError
                {
                        string file_data;
                        if (!FileUtils.test (fname, FileTest.EXISTS)) {
@@ -158,7 +159,7 @@ namespace Palete {
                        
                        if (!othis.has_property(ctx,jmethod)) {
                                throw new JavascriptError.MISSING_METHOD ("Plugin: missing method  %s", call_method);
-                               return;
+                        
                        }
                        
                        var val =  othis.get_property (ctx, jmethod, out exb);
@@ -191,7 +192,7 @@ namespace Palete {
                         
                         
                         print("ret:%s\n",(string)  buf);
-                        
+                        return (string) buf;
                        
                }