fix attribute
[roojs1] / buildSDK / File.js
index 77777ba..8dbf673 100644 (file)
@@ -2,7 +2,7 @@
 GLib = imports.gi.GLib;
 Gio = imports.gi.Gio;
 
-String  = imports.String.String; 
+//String  = imports.String.String; 
 /**
 * @namespace File
 * 
@@ -39,8 +39,8 @@ var File = {
 
     read : function (path) {
         var out = {};
-        GLib.file_get_contents(path, out, null, null);
-        return out['value'];
+        out = GLib.file_get_contents(path);
+        return out['contents'];
     },
 
     isFile : function (path) {