in apis/scaladoc-1.0.0/scripts/components/DocumentableList.js [33:67]
render({ filter }) {
this.state.list.sectionsRefs.map(sectionRef => {
const isTabVisible = this.state.list
.getSectionListRefs(sectionRef)
.filter((listRef) => {
const isListVisible = this.state.list
.getSectionListElementsRefs(listRef)
.map(elementRef => this.state.list.toListElement(elementRef))
.filter(elementData => {
const isElementVisible = this.state.list.isElementVisible(elementData, filter);
this.toggleDisplayStyles(isElementVisible, elementData.ref);
this.toggleElementDatasetVisibility(isElementVisible, elementData.ref);
return isElementVisible;
}).length;
findRefs("span.groupHeader", listRef).forEach(h => {
const headerSiblings = this.state.list.getSectionListElementsRefs(h.parentNode).map(ref => this.state.list.toListElement(ref))
const isHeaderVisible = headerSiblings.filter(s => this.state.list.isElementVisible(s, filter)) != 0
this.toggleDisplayStyles(isHeaderVisible, h)
})
this.toggleDisplayStyles(isListVisible, listRef);
return isListVisible;
}).length;
const outerThis = this
this.state.list.getTabRefFromSectionRef(sectionRef).forEach(function(tabRef){
outerThis.toggleDisplayStyles(isTabVisible, tabRef);
})
});
}