cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Fix require paths that were broken by plugin id changes
Date Sat, 29 Jun 2013 01:58:22 GMT
Updated Branches:
  refs/heads/master bc4b0f12e -> de38d4a2c


Fix require paths that were broken by plugin id changes


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

Branch: refs/heads/master
Commit: de38d4a2c81020487b1a194861b5271de55274cf
Parents: bc4b0f1
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jun 28 19:46:10 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jun 28 20:21:39 2013 -0400

----------------------------------------------------------------------
 www/FileTransfer.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file-transfer/blob/de38d4a2/www/FileTransfer.js
----------------------------------------------------------------------
diff --git a/www/FileTransfer.js b/www/FileTransfer.js
index 31af810..d4cfec1 100644
--- a/www/FileTransfer.js
+++ b/www/FileTransfer.js
@@ -21,8 +21,8 @@
 
 var argscheck = require('cordova/argscheck'),
     exec = require('cordova/exec'),
-    FileTransferError = require('org.apache.cordova.core.FileTransfer.FileTransferError'),
-    ProgressEvent = require('org.apache.cordova.core.FileUtils.ProgressEvent');
+    FileTransferError = require('org.apache.cordova.core.file-transfer.FileTransferError'),
+    ProgressEvent = require('org.apache.cordova.core.file.ProgressEvent');
 
 function newProgressEvent(result) {
     var pe = new ProgressEvent();
@@ -175,10 +175,10 @@ FileTransfer.prototype.download = function(source, target, successCallback,
erro
         } else if (successCallback) {
             var entry = null;
             if (result.isDirectory) {
-                entry = new (require('org.apache.cordova.core.FileUtils.DirectoryEntry'))();
+                entry = new (require('org.apache.cordova.core.file.DirectoryEntry'))();
             }
             else if (result.isFile) {
-                entry = new (require('org.apache.cordova.core.FileUtils.FileEntry'))();
+                entry = new (require('org.apache.cordova.core.file.FileEntry'))();
             }
             entry.isDirectory = result.isDirectory;
             entry.isFile = result.isFile;


Mime
View raw message