cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject git commit: CB-7375: Partial revert to resolve WP8 failures
Date Wed, 27 Aug 2014 18:53:18 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master ad05e3203 -> 99ade6161


CB-7375: Partial revert to resolve WP8 failures


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

Branch: refs/heads/master
Commit: 99ade6161ba6d14aa6ea625c0d08b615614b3163
Parents: ad05e32
Author: Ian Clelland <iclelland@chromium.org>
Authored: Wed Aug 27 14:48:07 2014 -0400
Committer: Ian Clelland <iclelland@chromium.org>
Committed: Wed Aug 27 14:52:50 2014 -0400

----------------------------------------------------------------------
 www/resolveLocalFileSystemURI.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/99ade616/www/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/www/resolveLocalFileSystemURI.js b/www/resolveLocalFileSystemURI.js
index 3d29ccb..334748a 100644
--- a/www/resolveLocalFileSystemURI.js
+++ b/www/resolveLocalFileSystemURI.js
@@ -51,9 +51,7 @@ module.exports.resolveLocalFileSystemURL = function(uri, successCallback,
errorC
         if (entry) {
             if (successCallback) {
                 // create appropriate Entry object
-                // The entry should have either a filesystemName property, or a filesystem
property with a name
-                // For backwards compatibility, also accept window.PERSISTENT (0)
-                var fsName = entry.filesystemName || (entry.filesystem && entry.filesystem.name)
|| (entry.filesystem == window.PERSISTENT ? 'persistent' : 'temporary');
+                var fsName = (entry.filesystem && entry.filesystem.name) || (entry.filesystem
== window.PERSISTENT ? 'persistent' : 'temporary');
                 fileSystems.getFs(fsName, function(fs) {
                     if (!fs) {
                         fs = new FileSystem(fsName, {name:"", fullPath:"/"});


Mime
View raw message