File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 605
605
// cleared to ensure the search is successful.
606
606
currentResults = null ;
607
607
// Synchronize search bar with query string state and
608
- // perform the search, but don't empty the bar if there's
609
- // nothing there.
610
- if ( params . search !== undefined ) {
611
- $ ( '.search-input' ) . val ( params . search ) ;
612
- }
608
+ // perform the search. This will empty the bar if there's
609
+ // nothing there, which lets you really go back to a
610
+ // previous state with nothing in the bar.
611
+ $ ( '.search-input' ) . val ( params . search ) ;
613
612
// Some browsers fire 'onpopstate' for every page load
614
613
// (Chrome), while others fire the event only when actually
615
614
// popping a state (Firefox), which is why search() is
You can’t perform that action at this time.
0 commit comments