incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [27/45] js commit: fix win to success
Date Sat, 06 Oct 2012 09:19:21 GMT
fix win to success

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

Branch: refs/heads/master
Commit: 5c0bd651429754e68d262b9711a7e04be74c2568
Parents: a484877
Author: wangmingfeng <mingfengwang01@gmail.com>
Authored: Tue Sep 25 09:47:13 2012 +0800
Committer: wangmingfeng <mingfengwang01@gmail.com>
Committed: Tue Sep 25 09:47:13 2012 +0800

----------------------------------------------------------------------
 lib/windows8/plugin/windows8/file.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/5c0bd651/lib/windows8/plugin/windows8/file.js
----------------------------------------------------------------------
diff --git a/lib/windows8/plugin/windows8/file.js b/lib/windows8/plugin/windows8/file.js
index 1500a77..0a624fc 100644
--- a/lib/windows8/plugin/windows8/file.js
+++ b/lib/windows8/plugin/windows8/file.js
@@ -21,7 +21,7 @@ module.exports = { //Merges with common
         );
     },
 
-    getMetadata:function(win,fail,args) {
+    getMetadata:function(success,fail,args) {
         // this.fullPath
         // this.isDirectory
         // this.isFile
@@ -222,7 +222,7 @@ module.exports = { //Merges with common
                             storageFolder.createFolderQuery().getFoldersAsync().then(function
(folderList) {
 
                                 if (folderList.length === 0) {
-                                    storageFolder.deleteAsync().done(successCallback, function
() {
+                                    storageFolder.deleteAsync().done(win, function () {
                                         fail(FileError.INVALID_MODIFICATION_ERR);
 
                                     });
@@ -247,7 +247,7 @@ module.exports = { //Merges with common
 
     },
 
-    removeRecursively:function(win,fail,args) { // ["fullPath"]
+    removeRecursively:function(successCallback,fail,args) { // ["fullPath"]
         var fullPath = args[0];
 
         Windows.Storage.StorageFolder.getFolderFromPathAsync(this.fullPath).done(function
(storageFolder) {
@@ -447,7 +447,7 @@ module.exports = { //Merges with common
         }, function () { fail(FileError.NOT_FOUND_ERR); });
     },
 
-    copyTo:function(win,fail,args) { // ["fullPath","parent", "newName"]
+    copyTo:function(success,fail,args) { // ["fullPath","parent", "newName"]
         var srcPath = args[0];
         var parentFullPath = args[1];
         var name = args[2];
@@ -556,7 +556,7 @@ module.exports = { //Merges with common
         copyFinish(srcPath, parentFullPath);
     },
 
-    moveTo:function(win,fail,args) { // ["fullPath","parent", "newName"]
+    moveTo:function(success,fail,args) { // ["fullPath","parent", "newName"]
         var srcPath = args[0];
         var parentFullPath = args[1];
         var name = args[2];
@@ -712,7 +712,7 @@ module.exports = { //Merges with common
         win(result);
     },
 
-    resolveLocalFileSystemURI:function(win,fail,args) {
+    resolveLocalFileSystemURI:function(success,fail,args) {
         var uri = args[0];
 
         var path = uri;


Mime
View raw message