File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -344,6 +344,7 @@ function defocusSearchBar() {
344
344
}
345
345
346
346
function getHelpElement ( ) {
347
+ buildHelperPopup ( ) ;
347
348
return document . getElementById ( "help" ) ;
348
349
}
349
350
@@ -2818,12 +2819,12 @@ function defocusSearchBar() {
2818
2819
2819
2820
popup . appendChild ( container ) ;
2820
2821
insertAfter ( popup , getSearchElement ( ) ) ;
2822
+ // So that it's only built once and then it'll do nothing when called!
2823
+ buildHelperPopup = function ( ) { } ;
2821
2824
}
2822
2825
2823
2826
onHashChange ( null ) ;
2824
2827
window . onhashchange = onHashChange ;
2825
-
2826
- buildHelperPopup ( ) ;
2827
2828
} ( ) ) ;
2828
2829
2829
2830
// This is required in firefox. Explanations: when going back in the history, firefox doesn't re-run
You can’t perform that action at this time.
0 commit comments