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
@ -2374,7 +2374,9 @@ function defocusSearchBar() {
|
|||||||
if (!next) {
|
if (!next) {
|
||||||
return;
|
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]);
|
insertAfter(toggle.cloneNode(true), e.childNodes[e.childNodes.length - 1]);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user