Rollup merge of #79796 - GuillaumeGomez:hide-associated-const-when-collapsing, r=jyn514
Hide associated constants too when collapsing implementation Fixes #71849. r? `@jyn514`
This commit is contained in:
commit
bfe49a0aa3
@ -2274,9 +2274,12 @@ function defocusSearchBar() {
|
||||
|
||||
function implHider(addOrRemove, fullHide) {
|
||||
return function(n) {
|
||||
var is_method = hasClass(n, "method") || fullHide;
|
||||
if (is_method || hasClass(n, "type")) {
|
||||
if (is_method === true) {
|
||||
var shouldHide =
|
||||
fullHide === true ||
|
||||
hasClass(n, "method") === true ||
|
||||
hasClass(n, "associatedconstant") === true;
|
||||
if (shouldHide === true || hasClass(n, "type") === true) {
|
||||
if (shouldHide === true) {
|
||||
if (addOrRemove) {
|
||||
addClass(n, "hidden-by-impl-hider");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user