Merge "Document need for async title-change"
This commit is contained in:
@@ -472,6 +472,9 @@
|
|||||||
};
|
};
|
||||||
this._path = value.path;
|
this._path = value.path;
|
||||||
|
|
||||||
|
// NOTE: This may be called before attachment (e.g. while parentElement is
|
||||||
|
// null). Fire title-change in an async so that, if attachment to the DOM
|
||||||
|
// has been queued, the event can bubble up to the handler in gr-app.
|
||||||
this.async(() => {
|
this.async(() => {
|
||||||
this.fire('title-change',
|
this.fire('title-change',
|
||||||
{title: this._computeTruncatedFileDisplayName(this._path)});
|
{title: this._computeTruncatedFileDisplayName(this._path)});
|
||||||
|
|||||||
Reference in New Issue
Block a user