Skip to content

Commit

Permalink
🔧 Set complete also on error
Browse files Browse the repository at this point in the history
  • Loading branch information
dej611 committed Oct 26, 2022
1 parent 512859c commit cae7625
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ export class RenderCompleteDispatcher {

public setEl(el?: HTMLElement) {
if (this.el !== el) {
this.el = el;
this.count = 0;
this.el = el;
this.count = 0;
}
if (el) this.dispatchInProgress();
}

Expand All @@ -62,7 +63,7 @@ export class RenderCompleteDispatcher {
public dispatchError() {
if (!this.el) return;
this.count++;
this.el.setAttribute('data-render-complete', 'false');
this.el.setAttribute('data-render-complete', 'true');
this.el.setAttribute('data-rendering-count', String(this.count));
}

Expand Down

0 comments on commit cae7625

Please sign in to comment.