File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -104,19 +104,19 @@ export class Snackbar {
104104 public language : Languages = 'en' ;
105105
106106 @Element ( )
107- private host : HTMLLimelSnackbarElement ;
107+ private readonly host : HTMLLimelSnackbarElement ;
108108
109109 /**
110110 * Emitted when the action button is pressed
111111 */
112112 @Event ( )
113- private action : EventEmitter < void > ;
113+ private readonly action : EventEmitter < void > ;
114114
115115 /**
116116 * Emitted when the snackbar hides itself
117117 */
118118 @Event ( )
119- private hide : EventEmitter < void > ;
119+ private readonly hide : EventEmitter < void > ;
120120
121121 @State ( )
122122 private offset : number = 0 ;
@@ -127,7 +127,7 @@ export class Snackbar {
127127 @State ( )
128128 private closing : boolean = true ;
129129
130- private snackbarId : string ;
130+ private readonly snackbarId : string ;
131131 private timeoutId ?: number ;
132132
133133 public constructor ( ) {
@@ -192,7 +192,7 @@ export class Snackbar {
192192 }
193193 } ;
194194
195- private handleClose = ( ) => {
195+ private readonly handleClose = ( ) => {
196196 if ( ! this . isOpen ) {
197197 return ;
198198 }
@@ -250,7 +250,7 @@ export class Snackbar {
250250 return 'status' ;
251251 }
252252
253- private handleClickAction = ( ) => {
253+ private readonly handleClickAction = ( ) => {
254254 this . action . emit ( ) ;
255255 } ;
256256
You can’t perform that action at this time.
0 commit comments