File.js
authoralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:26:18 +0000 (13:26 +0800)
committeralan <alan@alanfast.akbkhome.com>
Mon, 19 Apr 2010 05:26:18 +0000 (13:26 +0800)
File.js

diff --git a/File.js b/File.js
index 647afe0..e788e59 100755 (executable)
--- a/File.js
+++ b/File.js
@@ -124,7 +124,7 @@ var File = {
     remove : function (path)
     {
         var f = Gio.file_new_for_path(String(path));
-        return f.delete();
+        return f['delete']();
     },
     // copy files recursively from fromDir, silently ignore them if they already exist in toDir
     silentRecursiveCopy : function (fromDir, toDir) {