fix successCallback to win 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/21182c9a Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/21182c9a Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/21182c9a
Branch: refs/heads/master Commit: 21182c9a3e7adfc29eab6699660ebac21c549a6d Parents: 5c0bd65 Author: wangmingfeng <mingfengwan...@gmail.com> Authored: Tue Sep 25 15:53:09 2012 +0800 Committer: wangmingfeng <mingfengwan...@gmail.com> Committed: Tue Sep 25 15:53:09 2012 +0800 ---------------------------------------------------------------------- lib/windows8/plugin/windows8/file.js | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/21182c9a/lib/windows8/plugin/windows8/file.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/file.js b/lib/windows8/plugin/windows8/file.js index 0a624fc..17d41d7 100644 --- a/lib/windows8/plugin/windows8/file.js +++ b/lib/windows8/plugin/windows8/file.js @@ -197,7 +197,7 @@ module.exports = { //Merges with common if (this.isFile) { Windows.Storage.StorageFile.getFileFromPathAsync(fullPath).done(function (storageFile) { - storageFile.deleteAsync().done(successCallback, function () { + storageFile.deleteAsync().done(win, function () { fail(FileError.INVALID_MODIFICATION_ERR); });