Commit db4461b9 authored by fukino@chromium.org's avatar fukino@chromium.org

Clear breadcrumbs just before the new one is created.

BUG=402196
TEST=manually

Review URL: https://codereview.chromium.org/461833002

Cr-Commit-Position: refs/heads/master@{#288934}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288934 0039d316-1c4b-4281-b951-d872f2087c98
parent 76680272
......@@ -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_));
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment