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() {
344344 }
345345
346346 function getHelpElement ( ) {
347+ buildHelperPopup ( ) ;
347348 return document . getElementById ( "help" ) ;
348349 }
349350
@@ -2818,12 +2819,12 @@ function defocusSearchBar() {
28182819
28192820 popup . appendChild ( container ) ;
28202821 insertAfter ( popup , getSearchElement ( ) ) ;
2822+ // So that it's only built once and then it'll do nothing when called!
2823+ buildHelperPopup = function ( ) { } ;
28212824 }
28222825
28232826 onHashChange ( null ) ;
28242827 window . onhashchange = onHashChange ;
2825-
2826- buildHelperPopup ( ) ;
28272828} ( ) ) ;
28282829
28292830// 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