File.js
[gnome.introspection-doc-generator] / File.js
diff --git a/File.js b/File.js
index 45c2f4f..7cbed3d 100755 (executable)
--- a/File.js
+++ b/File.js
@@ -32,7 +32,7 @@ var File = {
         return s;
     },
     trim : function (s,toTrim) {
-        var out = s.ltrim(toTrim);
+        var out = this.ltrim(s,toTrim);
         out = this.rtrim(out,toTrim);
         return out;
     },