@@ -2908,10 +2908,14 @@ function defocusSearchBar() {
2908
2908
[ "⏎" , "Go to active search result" ] ,
2909
2909
[ "+" , "Expand all sections" ] ,
2910
2910
[ "-" , "Collapse all sections" ] ,
2911
- ] . map ( x => "<dt>" +
2912
- x [ 0 ] . split ( " " )
2913
- . map ( ( y , index ) => ( index & 1 ) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " " )
2914
- . join ( "" ) + "</dt><dd>" + x [ 1 ] + "</dd>" ) . join ( "" ) ;
2911
+ ] . map ( function ( x ) {
2912
+ return "<dt>" +
2913
+ x [ 0 ] . split ( " " )
2914
+ . map ( function ( y , index ) {
2915
+ return ( index & 1 ) === 0 ? "<kbd>" + y + "</kbd>" : " " + y + " " ;
2916
+ } )
2917
+ . join ( "" ) + "</dt><dd>" + x [ 1 ] + "</dd>" ;
2918
+ } ) . join ( "" ) ;
2915
2919
var div_shortcuts = document . createElement ( "div" ) ;
2916
2920
addClass ( div_shortcuts , "shortcuts" ) ;
2917
2921
div_shortcuts . innerHTML = "<h2>Keyboard Shortcuts</h2><dl>" + shortcuts + "</dl></div>" ;
@@ -2929,7 +2933,9 @@ function defocusSearchBar() {
2929
2933
"You can look for items with an exact name by putting double quotes around \
2930
2934
your request: <code>\"string\"</code>" ,
2931
2935
"Look for items inside another one by searching for a path: <code>vec::Vec</code>" ,
2932
- ] . map ( x => "<p>" + x + "</p>" ) . join ( "" ) ;
2936
+ ] . map ( function ( x ) {
2937
+ return "<p>" + x + "</p>" ;
2938
+ } ) . join ( "" ) ;
2933
2939
var div_infos = document . createElement ( "div" ) ;
2934
2940
addClass ( div_infos , "infos" ) ;
2935
2941
div_infos . innerHTML = "<h2>Search Tricks</h2>" + infos ;
0 commit comments