cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject git commit: CB-6352: Allow FileSystem objects to be serialized to JSON
Date Wed, 26 Mar 2014 18:05:10 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/dev f84a35f44 -> 1eab4dbc6


CB-6352: Allow FileSystem objects to be serialized to JSON


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/1eab4dbc
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/1eab4dbc
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/1eab4dbc

Branch: refs/heads/dev
Commit: 1eab4dbc648453f6a6ecbaaa0bd705690019e9cd
Parents: f84a35f
Author: Ian Clelland <iclelland@chromium.org>
Authored: Wed Mar 26 14:04:48 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Wed Mar 26 14:04:48 2014 -0400

----------------------------------------------------------------------
 www/FileSystem.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/1eab4dbc/www/FileSystem.js
----------------------------------------------------------------------
diff --git a/www/FileSystem.js b/www/FileSystem.js
index 6927510..7ac4671 100644
--- a/www/FileSystem.js
+++ b/www/FileSystem.js
@@ -41,4 +41,8 @@ FileSystem.prototype.__format__ = function(fullPath) {
     return fullPath;
 };
 
+FileSystem.prototype.toJSON = function() {
+    return "<FileSystem: " + this.name + ">";
+};
+
 module.exports = FileSystem;


Mime
View raw message