Verified Commit f02e1380 authored by Camil Staps's avatar Camil Staps 🚀

Fix issue in browser for libraries that contain a directory and a module with...

Fix issue in browser for libraries that contain a directory and a module with the same name (e.g. Gast)

In this case, clicking the module with that name would not make the node
italic.
parent 4090ea34
......@@ -110,10 +110,11 @@ Element.prototype.browser = function(opts) {
if (i < path.length - 1) {
toggle(children[k], true);
e = children[k].childNodes[1];
break;
} else if (!children[k].classList.contains('directory')) {
children[k].classList.add('active');
break;
}
break;
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment