cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [1/3] git commit: Make it a priority to use filesystemName to create FileSystem object
Date Tue, 25 Feb 2014 04:31:38 GMT
Repository: cordova-plugin-file-transfer
Updated Branches:
  refs/heads/dev 0f8467bdf -> 0779c71e0


Make it a priority to use filesystemName to create FileSystem object


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

Branch: refs/heads/dev
Commit: d28f85d7b054bb6d9fb577f94df2852ede75c2b1
Parents: 0f8467b
Author: lmnbeyond <lmnbeyond@gmail.com>
Authored: Mon Feb 24 11:14:16 2014 +0800
Committer: lmnbeyond <lmnbeyond@gmail.com>
Committed: Mon Feb 24 11:14:16 2014 +0800

----------------------------------------------------------------------
 www/FileTransfer.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/d28f85d7/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index d6690fe..fb3ff24 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -184,7 +184,7 @@ FileTransfer.prototype.download = function(source, target, successCallback,
erro
             entry.isFile = result.isFile;
             entry.name = result.name;
             entry.fullPath = result.fullPath;
-            entry.filesystem = new FileSystem(result.filesystem == window.PERSISTENT ? 'persistent'
: 'temporary');
+            entry.filesystem = new FileSystem(result.filesystemName || (result.filesystem
== window.PERSISTENT ? 'persistent' : 'temporary'));
             successCallback(entry);
         }
     };


Mime
View raw message