1
Fork 0

Hide associated constants too when collapsing implementation

This commit is contained in:
Guillaume Gomez 2020-12-07 15:13:12 +01:00
parent c7cff213e9
commit 99df3406cf

View file

@ -2257,9 +2257,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 {