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