You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2012/02/23 18:53:19 UTC

[22/35] git commit: need to hack around circular dependencies D:

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 <fi...@nitobi.com>
Authored: Thu Feb 16 18:23:27 2012 -0800
Committer: Fil Maj <fi...@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);
                 }