Rollup merge of #71842 - tspiteri:doc-impl-const, r=GuillaumeGomez
doc: make impl block collapsible if it has an associated constant Fixes #71822.
This commit is contained in:
commit
98bd22bda3
1 changed files with 3 additions and 1 deletions
|
@ -2374,7 +2374,9 @@ function defocusSearchBar() {
|
|||
if (!next) {
|
||||
return;
|
||||
}
|
||||
if (next.getElementsByClassName("method").length > 0 && hasClass(e, "impl")) {
|
||||
if (hasClass(e, "impl") &&
|
||||
(next.getElementsByClassName("method").length > 0 ||
|
||||
next.getElementsByClassName("associatedconstant").length > 0)) {
|
||||
insertAfter(toggle.cloneNode(true), e.childNodes[e.childNodes.length - 1]);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue