Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Last function in a file does not appear in the Definitions box #87

Open
ghost opened this issue Mar 13, 2020 · 0 comments
Open

Last function in a file does not appear in the Definitions box #87

ghost opened this issue Mar 13, 2020 · 0 comments
Assignees

Comments

@ghost
Copy link

ghost commented Mar 13, 2020

In codebrowser.js we have:

for (var i = 0; i < dfns.length - 1; ++i) {
            html += '<li><a href="#' + dfns[i].id + '" title="'+ dfns[i].title+ '" data-ref="'+ dfns[i].id +'">'+escape_html(dfns[i].textContent) +'</a></li>';
        }

It looks like the indexing is off by one since the last function in a file is not listed in the Definitions box. Should the loop condition be i < dfns.length instead?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant