clenemt / docdash

:zap: Lodash inspired JSDoc 3 template/theme
http://clenemt.github.io/docdash/
Other
824 stars 201 forks source link

About the static members of the error #115

Open Mr-ziqiang opened 1 year ago

Mr-ziqiang commented 1 year ago

In publish.js line No.366,i find a bug,look flow

 members.forEach(function (member) {
      if (!member.scope === 'static') return;        <------- this will not work
      itemsNav += "<li data-type='member'";
      if(docdash.collapse)
          itemsNav += " style='display: none;'";
      itemsNav += ">";
      itemsNav += linkto(member.longname, member.name);
      itemsNav += "</li>";
  });

I think maybe you want write to

if(member.scope!=='static') return;