File tree Expand file tree Collapse file tree
src/vs/workbench/parts/html/browser Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,19 +10,15 @@ import { Webview } from './webview';
1010export class WebviewFindWidget extends SimpleFindWidget {
1111
1212 constructor (
13- @IContextViewService _contextViewService : IContextViewService ,
14- private webview : Webview
13+ @IContextViewService contextViewService : IContextViewService ,
14+ private readonly webview : Webview
1515 ) {
16- super ( _contextViewService ) ;
17-
18- this . find = this . find . bind ( this ) ;
19- this . hide = this . hide . bind ( this ) ;
20- this . onInputChanged = this . onInputChanged . bind ( this ) ;
16+ super ( contextViewService ) ;
2117 }
2218
2319 public find ( previous : boolean ) {
24- let val = this . inputValue ;
25- if ( this . webview !== null && val ) {
20+ const val = this . inputValue ;
21+ if ( val ) {
2622 this . webview . find ( val , { findNext : true , forward : ! previous } ) ;
2723 }
2824 }
@@ -34,11 +30,7 @@ export class WebviewFindWidget extends SimpleFindWidget {
3430 }
3531
3632 public onInputChanged ( ) {
37- if ( ! this . webview ) {
38- return ;
39- }
40-
41- let val = this . inputValue ;
33+ const val = this . inputValue ;
4234 if ( val ) {
4335 this . webview . startFind ( val ) ;
4436 } else {
You can’t perform that action at this time.
0 commit comments