Do not expose static render function of controls

This commit is contained in:
Andreas Hocevar
2020-01-29 17:33:04 +01:00
parent e3f9e250ab
commit f8f7f83be7
9 changed files with 17 additions and 11 deletions

View File

@@ -274,8 +274,9 @@ function buildNav(members) {
kind: 'event',
memberof: v.longname
});
// only add modules that have more to show than just a single class
if (!classes.length || classes.length - 1 + members.length + methods.length + typedefs.length + events.length > 0) {
// only add modules that have more to show than just classes
const numItems = classes.length - 1 + members.length + methods.length + typedefs.length + events.length;
if (!classes.length || (numItems > 0 && numItems !== classes.length)) {
nav.push({
type: 'module',
longname: v.longname,