You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ia...@apache.org on 2014/04/23 20:57:14 UTC

[18/37] git commit: CB-6352: Allow FileSystem objects to be serialized to JSON

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/master
Commit: 1eab4dbc648453f6a6ecbaaa0bd705690019e9cd
Parents: f84a35f
Author: Ian Clelland <ic...@chromium.org>
Authored: Wed Mar 26 14:04:48 2014 -0400
Committer: Ian Clelland <ic...@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;