You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/07/09 03:56:06 UTC

[7/7] git commit: remove extra function closure, not needed

remove extra function closure, not needed


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/cc833d17
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/cc833d17
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/cc833d17

Branch: refs/heads/master
Commit: cc833d17c1e7d38532bc4311f7b5948cc0d44886
Parents: d678c78
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Tue Jul 8 18:53:42 2014 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Tue Jul 8 18:53:42 2014 -0700

----------------------------------------------------------------------
 src/windows8/FileProxy.js | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/cc833d17/src/windows8/FileProxy.js
----------------------------------------------------------------------
diff --git a/src/windows8/FileProxy.js b/src/windows8/FileProxy.js
index 93fdc8e..0412d93 100644
--- a/src/windows8/FileProxy.js
+++ b/src/windows8/FileProxy.js
@@ -43,13 +43,8 @@ function nativePathToCordova(path) {
     return cleanPath;
 };
 
-function getFolderFromPathAsync(path) {
-    return Windows.Storage.StorageFolder.getFolderFromPathAsync(path);
-};
-
-function getFileFromPathAsync(path) {
-    return Windows.Storage.StorageFile.getFileFromPathAsync(path);
-};
+var getFolderFromPathAsync = Windows.Storage.StorageFolder.getFolderFromPathAsync;
+var getFileFromPathAsync = Windows.Storage.StorageFile.getFileFromPathAsync;
 
 
 module.exports = {