mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
'longname' property of tutorials is undefined
therefore uniqueness checking causes the navigation displays only one tutorial. Items without 'longname' should be omitted from checking.
This commit is contained in:
parent
1945e6322e
commit
d57c67d9af
@ -295,7 +295,10 @@ function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {
|
||||
var itemsNav = '';
|
||||
|
||||
items.forEach(function(item) {
|
||||
if ( !hasOwnProp.call(itemsSeen, item.longname) ) {
|
||||
if ( !hasOwnProp.call(item, 'longname') ) {
|
||||
itemsNav += '<li>' + linktoFn('', item.name) + '</li>';
|
||||
}
|
||||
else if ( !hasOwnProp.call(itemsSeen, item.longname) ) {
|
||||
itemsNav += '<li>' + linktoFn(item.longname, item.name.replace(/^module:/, '')) + '</li>';
|
||||
itemsSeen[item.longname] = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user