File tree Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Expand file tree Collapse file tree 4 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,9 @@ export interface TabProps {
15
15
}
16
16
17
17
export default abstract class Tab {
18
- props : TabProps ;
19
18
abstract $el : Element ;
20
19
21
- constructor ( props : TabProps ) {
22
- this . props = props ;
23
- }
20
+ constructor ( readonly props : TabProps ) { }
24
21
25
22
registerListeners ( ) : void {
26
23
this . $el . addEventListener ( "click" , this . props . onClick ) ;
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ export default class WebView {
92
92
return new WebView ( props , $element , webContentsId ) ;
93
93
}
94
94
95
- props : WebViewProps ;
96
95
zoomFactor : number ;
97
96
badgeCount : number ;
98
97
loading : boolean ;
@@ -102,11 +101,10 @@ export default class WebView {
102
101
webContentsId : number ;
103
102
104
103
private constructor (
105
- props : WebViewProps ,
104
+ readonly props : WebViewProps ,
106
105
$element : HTMLElement ,
107
106
webContentsId : number ,
108
107
) {
109
- this . props = props ;
110
108
this . zoomFactor = 1 ;
111
109
this . loading = true ;
112
110
this . badgeCount = 0 ;
Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ interface PreferenceNavProps {
10
10
}
11
11
12
12
export default class PreferenceNav {
13
- props : PreferenceNavProps ;
14
13
navItems : NavItem [ ] ;
15
14
$el : Element ;
16
- constructor ( props : PreferenceNavProps ) {
17
- this . props = props ;
15
+ constructor ( private readonly props : PreferenceNavProps ) {
18
16
this . navItems = [
19
17
"General" ,
20
18
"Network" ,
Original file line number Diff line number Diff line change @@ -10,13 +10,11 @@ const logger = new Logger({
10
10
} ) ;
11
11
12
12
export default class ReconnectUtil {
13
- webview : WebView ;
14
13
url : string ;
15
14
alreadyReloaded : boolean ;
16
15
fibonacciBackoff : backoff . Backoff ;
17
16
18
17
constructor ( webview : WebView ) {
19
- this . webview = webview ;
20
18
this . url = webview . props . url ;
21
19
this . alreadyReloaded = false ;
22
20
this . fibonacciBackoff = backoff . fibonacci ( {
You can’t perform that action at this time.
0 commit comments