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:
Guillaume Gomez 2020-12-15 16:43:21 +01:00 committed by GitHub
commit bfe49a0aa3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {