File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
1212 readonly #contentElement: Element ;
1313 #labelElement: Element ;
1414 #progressElement: HTMLProgressElement ;
15- readonly #stopButton?: Element ;
15+ #stopButton?: Element ;
1616 #isCanceled = false ;
1717 #worked = 0 ;
1818 #isDone = false ;
@@ -25,7 +25,10 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
2525 this . #labelElement = this . #contentElement. createChild ( 'div' , 'title' ) ;
2626 this . #progressElement = this . #contentElement. createChild ( 'progress' ) ;
2727 this . #progressElement. value = 0 ;
28+ }
2829
30+ connectedCallback ( ) : void {
31+ this . classList . add ( 'progress-indicator' ) ;
2932 // By default we show the stop button, but this can be controlled by
3033 // using the 'no-stop-button' attribute on the element.
3134 if ( ! this . hasAttribute ( 'no-stop-button' ) ) {
@@ -34,10 +37,6 @@ export class ProgressIndicator extends HTMLElement implements Common.Progress.Pr
3437 }
3538 }
3639
37- connectedCallback ( ) : void {
38- this . classList . add ( 'progress-indicator' ) ;
39- }
40-
4140 done ( ) : void {
4241 if ( this . #isDone) {
4342 return ;
You can’t perform that action at this time.
0 commit comments