Index: ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js |
diff --git a/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js b/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js |
index 7f78047412d75864f200579c564c8272e11a934f..1e8c601c688a374513233f61b4a70c6772bc8269 100644 |
--- a/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js |
+++ b/ui/file_manager/file_manager/foreground/js/ui/breadcrumbs_controller.js |
@@ -43,8 +43,6 @@ BreadcrumbsController.prototype.show = function(entry) { |
return; |
this.entry_ = entry; |
- this.bc_.hidden = false; |
- this.bc_.textContent = ''; |
this.showSequence_++; |
var queue = new AsyncUtil.Queue(); |
@@ -117,8 +115,12 @@ BreadcrumbsController.prototype.show = function(entry) { |
// Update DOM element. |
queue.run(function(sequence, callback) { |
// Check the sequence number to skip requests that are out of date. |
- if (this.showSequence_ === sequence && !error) |
- this.updateInternal_(entries); |
+ if (this.showSequence_ === sequence) { |
+ this.bc_.hidden = false; |
+ this.bc_.textContent = ''; |
+ if (!error) |
+ this.updateInternal_(entries); |
+ } |
callback(); |
}.bind(this, this.showSequence_)); |
}; |