pixijs / pixi-jsdoc-template

PixiJS Flavored JSDoc Template

Home Page:https://www.npmjs.com/package/@pixi/jsdoc-template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sidebar "currentItem" selection is too fuzzy

H12 opened this issue · comments

If you have multiple files with similar names (e.g. Model and AnotherModel), the data-name selector here:

var $currentItem = $nav.find('.item[data-name*="' + filename + '"]:eq(0)');

...will incorrectly set $currentItem to be AnotherModel when you click on Model.

I think using data-name= instead of data-name*= will fix this, but I'm unsure whether that could cause other issues.