You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/02/11 00:23:10 UTC

[44/50] git commit: Add default FS root to new FS objects

Add default FS root to new FS objects


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/aa23cf42
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/aa23cf42
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/aa23cf42

Branch: refs/heads/master
Commit: aa23cf4227880425a3f0e22fe2379b7b38c1b8db
Parents: 7e6afaf
Author: Ian Clelland <ic...@chromium.org>
Authored: Wed Jan 29 14:02:23 2014 -0500
Committer: Ian Clelland <ic...@chromium.org>
Committed: Wed Jan 29 14:02:23 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/aa23cf42/www/FileSystem.js
----------------------------------------------------------------------
diff --git a/www/FileSystem.js b/www/FileSystem.js
index 80a9d2d..6927510 100644
--- a/www/FileSystem.js
+++ b/www/FileSystem.js
@@ -32,6 +32,8 @@ var FileSystem = function(name, root) {
     this.name = name || null;
     if (root) {
         this.root = new DirectoryEntry(root.name, root.fullPath, this);
+    } else {
+        this.root = new DirectoryEntry(this.name, '/', this);
     }
 };