Add collapser for associated const
This commit is contained in:
parent
b0ee5ded7a
commit
a00706a3b9
1 changed files with 3 additions and 4 deletions
|
@ -1990,7 +1990,8 @@
|
|||
if (!next) {
|
||||
return;
|
||||
}
|
||||
if ((checkIfThereAreMethods(next.childNodes) || hasClass(e, 'method')) &&
|
||||
if ((hasClass(e, 'method') || hasClass(e, 'associatedconstant') ||
|
||||
checkIfThereAreMethods(next.childNodes)) &&
|
||||
(hasClass(next, 'docblock') ||
|
||||
hasClass(e, 'impl') ||
|
||||
(hasClass(next, 'stability') &&
|
||||
|
@ -1999,10 +2000,8 @@
|
|||
}
|
||||
};
|
||||
onEach(document.getElementsByClassName('method'), func);
|
||||
onEach(document.getElementsByClassName('associatedconstant'), func);
|
||||
onEach(document.getElementsByClassName('impl'), func);
|
||||
onEach(document.getElementsByClassName('impl-items'), function(e) {
|
||||
onEach(e.getElementsByClassName('associatedconstant'), func);
|
||||
});
|
||||
|
||||
function createToggle(otherMessage, fontSize, extraClass) {
|
||||
var span = document.createElement('span');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue