mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 22:06:34 +00:00
Use async over debounce in importHref
This commit is contained in:
parent
0d01baf8f6
commit
974c75b9ed
@ -87,9 +87,6 @@ Polymer({
|
|||||||
this.resolved = false;
|
this.resolved = false;
|
||||||
this.errorLoading = false;
|
this.errorLoading = false;
|
||||||
|
|
||||||
// Debounced otherwise importHref will add an HTML import to the DOM
|
|
||||||
// which blocks painting till loaded.
|
|
||||||
this.debounce('import-panel', function () {
|
|
||||||
this.importHref(
|
this.importHref(
|
||||||
panel.get('url'),
|
panel.get('url'),
|
||||||
|
|
||||||
@ -106,8 +103,9 @@ Polymer({
|
|||||||
|
|
||||||
function error() {
|
function error() {
|
||||||
this.errorLoading = true;
|
this.errorLoading = true;
|
||||||
}.bind(this));
|
}.bind(this),
|
||||||
}.bind(this));
|
|
||||||
|
true /* async */);
|
||||||
},
|
},
|
||||||
|
|
||||||
updateAttributes: function () {
|
updateAttributes: function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user