Introspect/NameSpace.js
[gnome.introspection-doc-generator] / File.js
diff --git a/File.js b/File.js
index 073a4df..7cbed3d 100755 (executable)
--- a/File.js
+++ b/File.js
@@ -31,9 +31,9 @@ var File = {
    
         return s;
     },
-   trim : function (s,toTrim) {
-        var out = s.ltrim(toTrim);
-        out = out.rtrim(toTrim);
+    trim : function (s,toTrim) {
+        var out = this.ltrim(s,toTrim);
+        out = this.rtrim(out,toTrim);
         return out;
     },
     
@@ -59,7 +59,7 @@ var File = {
             }
         }
         return out;
-    },
+    }, 
     read : function (path) {
         var out = {};
         GLib.file_get_contents(path, out, null, null);