@@ -75,7 +75,7 @@ function viewElementSourceFunction(source: ReactDevToolsTypes.Source, symbolicat
7575export class ReactDevToolsViewBase extends UI . View . SimpleView implements
7676 SDK . TargetManager . SDKModelObserver < ReactDevToolsModel > {
7777 readonly #tab: string ;
78- # model: ReactDevToolsModel | null = null ;
78+ model : ReactDevToolsModel | null = null ;
7979
8080 constructor (
8181 tab : 'components' | 'profiler' ,
@@ -92,7 +92,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
9292 }
9393
9494 modelAdded ( model : ReactDevToolsModel ) : void {
95- this . # model = model ;
95+ this . model = model ;
9696
9797 model . addEventListener (
9898 ReactDevToolsModelEvents . INITIALIZATION_COMPLETED ,
@@ -113,7 +113,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
113113 if ( model . isInitialized ( ) ) {
114114 // Already initialized from another rendered React DevTools panel - render
115115 // from initialized state
116- this . # renderDevToolsView( ) ;
116+ this . renderDevToolsView ( ) ;
117117 } else {
118118 // Once initialized, it will emit InitializationCompleted event
119119 model . ensureInitialized ( ) ;
@@ -139,7 +139,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
139139 }
140140
141141 #handleInitializationCompleted( ) : void {
142- this . # renderDevToolsView( ) ;
142+ this . renderDevToolsView ( ) ;
143143 }
144144
145145 #handleInitializationFailed( { data : errorMessage } : ReactDevToolsInitializationFailedEvent ) : void {
@@ -150,10 +150,10 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
150150 this . #renderLoader( ) ;
151151 }
152152
153- # renderDevToolsView( ) : void {
154- this . # clearView( ) ;
153+ renderDevToolsView ( ) : void {
154+ this . clearView ( ) ;
155155
156- const model = this . # model;
156+ const model = this . model ;
157157 if ( model === null ) {
158158 throw new Error ( 'Attempted to render React DevTools panel, but the model was null' ) ;
159159 }
@@ -171,7 +171,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
171171 }
172172
173173 #renderLoader( ) : void {
174- this . # clearView( ) ;
174+ this . clearView ( ) ;
175175
176176 const loaderContainer = document . createElement ( 'div' ) ;
177177 loaderContainer . setAttribute ( 'style' , 'display: flex; flex: 1; justify-content: center; align-items: center' ) ;
@@ -184,7 +184,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
184184 }
185185
186186 #renderErrorView( errorMessage : string ) : void {
187- this . # clearView( ) ;
187+ this . clearView ( ) ;
188188
189189 const errorContainer = document . createElement ( 'div' ) ;
190190 errorContainer . setAttribute ( 'style' , 'display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center' ) ;
@@ -210,7 +210,7 @@ export class ReactDevToolsViewBase extends UI.View.SimpleView implements
210210 }
211211 }
212212
213- # clearView( ) : void {
213+ clearView ( ) : void {
214214 this . contentElement . removeChildren ( ) ;
215215 }
216216}
0 commit comments