Index: chrome/browser/resources/file_manager/js/file_transfer_controller.js |
diff --git a/chrome/browser/resources/file_manager/js/file_transfer_controller.js b/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
index c3e96f4ff29cdec5a85bebd36363487568489c28..5d22ddb36605e9016bf2f641ca560e337318b497 100644 |
--- a/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
+++ b/chrome/browser/resources/file_manager/js/file_transfer_controller.js |
@@ -477,8 +477,8 @@ FileTransferController.prototype = { |
if (this.dropTarget_ == domElement) |
return; |
- /** @type {string?} */ |
- this.destinationPath_ = null; |
+ // Remove the old drag target. |
mtomasz
2013/04/05 07:00:32
drag -> drop
|
+ this.clearDropTarget_(); |
// Add accept class if the domElement can accept the drag. |
if (isDirectory && |
@@ -487,9 +487,6 @@ FileTransferController.prototype = { |
this.destinationPath_ = destinationPath; |
} |
- // Remove the old drag target. |
- this.clearDropTarget_(); |
- |
// Set the new drop target. |
this.dropTarget_ = domElement; |
@@ -514,6 +511,7 @@ FileTransferController.prototype = { |
if (this.dropTarget_ && this.dropTarget_.classList.contains('accepts')) |
this.dropTarget_.classList.remove('accepts'); |
this.dropTarget_ = null; |
+ this.destinationPath_ = null; |
if (this.navigateTimer_ !== undefined) { |
clearTimeout(this.navigateTimer_); |
this.navigateTimer_ = undefined; |