Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: ui/file_manager/file_manager/background/js/file_operation_util.js

Issue 838023003: Clear the cancel callback before calling it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/background/js/file_operation_util.js
diff --git a/ui/file_manager/file_manager/background/js/file_operation_util.js b/ui/file_manager/file_manager/background/js/file_operation_util.js
index 4c7d0c459d7cd4ab631487f2688183a9d797b5cb..e22c63fb276caced9c36174696e5b7151eaf9eab 100644
--- a/ui/file_manager/file_manager/background/js/file_operation_util.js
+++ b/ui/file_manager/file_manager/background/js/file_operation_util.js
@@ -578,8 +578,9 @@ fileOperationUtil.Task.prototype.initialize = function(callback) {
fileOperationUtil.Task.prototype.requestCancel = function() {
this.cancelRequested_ = true;
if (this.cancelCallback_) {
- this.cancelCallback_();
+ var callback = this.cancelCallback_;
this.cancelCallback_ = null;
+ callack();
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698