incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject [22/35] git commit: need to hack around circular dependencies D:
Date Thu, 23 Feb 2012 17:53:19 GMT
need to hack around circular dependencies D:


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/70b5664a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/70b5664a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/70b5664a

Branch: refs/heads/ios
Commit: 70b5664afee211361b72e5019ae8d4610a7b10a3
Parents: 900fe46
Author: Fil Maj <filip.maj@nitobi.com>
Authored: Thu Feb 16 18:23:27 2012 -0800
Committer: Fil Maj <filip.maj@nitobi.com>
Committed: Thu Feb 16 18:23:27 2012 -0800

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/70b5664a/lib/plugin/Entry.js
----------------------------------------------------------------------
diff --git a/lib/plugin/Entry.js b/lib/plugin/Entry.js
index cd1b1f6..4be36b9 100644
--- a/lib/plugin/Entry.js
+++ b/lib/plugin/Entry.js
@@ -65,7 +65,7 @@ Entry.prototype.moveTo = function(parent, newName, successCallback, errorCallbac
 
             if (entry) {
                 // create appropriate Entry object
-                result = (entry.isDirectory) ? new require('cordova/plugin/DirectoryEntry')(entry)
: new require('cordova/plugin/FileEntry')(entry);                
+                result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name,
entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
                 try {
                     successCallback(result);
                 }
@@ -118,7 +118,7 @@ Entry.prototype.copyTo = function(parent, newName, successCallback, errorCallbac
 
             if (entry) {
                 // create appropriate Entry object
-                result = (entry.isDirectory) ? new require('cordova/plugin/DirectoryEntry')(entry)
: new require('cordova/plugin/FileEntry')(entry);                
+                result = (entry.isDirectory) ? new (require('cordova/plugin/DirectoryEntry'))(entry.name,
entry.fullPath) : new (require('cordova/plugin/FileEntry'))(entry.name, entry.fullPath);
                 try {
                     successCallback(result);
                 }


Mime
View raw message