File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1852,6 +1852,9 @@ function defocusSearchBar() {
18521852 var crateSize = 0 ;
18531853
18541854 searchWords . push ( crate ) ;
1855+ // This object should have exactly the same set of fields as the "row"
1856+ // object defined below. Your JavaScript runtime will thank you.
1857+ // https://mathiasbynens.be/notes/shapes-ics
18551858 var crateRow = {
18561859 crate : crate ,
18571860 ty : 1 , // == ExternCrate
@@ -1902,6 +1905,8 @@ function defocusSearchBar() {
19021905 len = itemTypes . length ;
19031906 var lastPath = "" ;
19041907 for ( i = 0 ; i < len ; ++ i ) {
1908+ // This object should have exactly the same set of fields as the "crateRow"
1909+ // object defined above.
19051910 var row = {
19061911 crate : crate ,
19071912 ty : itemTypes [ i ] ,
You can’t perform that action at this time.
0 commit comments