incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [24/35] git commit: resolveLocalFileSystemURI needs to create Entries with right contructor signature
Date Thu, 23 Feb 2012 17:53:19 GMT
resolveLocalFileSystemURI needs to create Entries with right contructor signature


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/95485fc5
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/95485fc5
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/95485fc5

Branch: refs/heads/ios
Commit: 95485fc5323708f5ffe0706b22f5db29e693ff5c
Parents: a022afa
Author: Fil Maj <filip.maj@nitobi.com>
Authored: Thu Feb 16 17:57:11 2012 -0800
Committer: Fil Maj <filip.maj@nitobi.com>
Committed: Thu Feb 16 17:57:11 2012 -0800

----------------------------------------------------------------------
 lib/plugin/Entry.js                     |    2 +-
 lib/plugin/resolveLocalFileSystemURI.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/95485fc5/lib/plugin/Entry.js
----------------------------------------------------------------------
diff --git a/lib/plugin/Entry.js b/lib/plugin/Entry.js
index a5f9cc2..828feda 100644
--- a/lib/plugin/Entry.js
+++ b/lib/plugin/Entry.js
@@ -171,7 +171,7 @@ Entry.prototype.remove = function(successCallback, errorCallback) {
  * @param errorCallback {Function} called with a FileError
  */
 Entry.prototype.getParent = function(successCallback, errorCallback) {
-    exec(successCallback, errorCallback, "File", "getParent", [this.fullPath]);  
+    exec(successCallback, errorCallback, "File", "getParent", [this.fullPath]);
 };
 
 module.exports = Entry;

http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/95485fc5/lib/plugin/resolveLocalFileSystemURI.js
----------------------------------------------------------------------
diff --git a/lib/plugin/resolveLocalFileSystemURI.js b/lib/plugin/resolveLocalFileSystemURI.js
index 375d960..879a1ff 100644
--- a/lib/plugin/resolveLocalFileSystemURI.js
+++ b/lib/plugin/resolveLocalFileSystemURI.js
@@ -19,7 +19,7 @@ module.exports = function(uri, successCallback, errorCallback) {
 
         if (entry) {
             // create appropriate Entry object
-            result = (entry.isDirectory) ? new DirectoryEntry(entry) : new FileEntry(entry);
+            result = (entry.isDirectory) ? new DirectoryEntry(entry.name, entry.fullPath)
: new FileEntry(entry.name, entry.fullPath);
             try {
                 successCallback(result);
             }


Mime
View raw message