mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
Merge pull request #856 from itantik/patch-1
Fix tutorial-linking issue caused by #813 (#856)
This commit is contained in:
commit
fcded9cc11
@ -288,15 +288,18 @@ function attachModuleSymbols(doclets, modules) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildMemberNav(items, itemHeading, itemsSeen) {
|
function buildMemberNav(items, itemHeading, itemsSeen, linktoFn) {
|
||||||
var nav = '';
|
var nav = '';
|
||||||
|
|
||||||
if (items.length) {
|
if (items.length) {
|
||||||
var itemsNav = '';
|
var itemsNav = '';
|
||||||
|
|
||||||
items.forEach(function(item) {
|
items.forEach(function(item) {
|
||||||
if ( !hasOwnProp.call(itemsSeen, item.longname) ) {
|
if ( !hasOwnProp.call(item, 'longname') ) {
|
||||||
itemsNav += '<li>' + linkto(item.longname, item.name.replace(/^module:/, '')) + '</li>';
|
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;
|
itemsSeen[item.longname] = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user