feature(user-menu) add ability to ignore private methods

This commit is contained in:
coderaiser 2019-05-28 19:04:22 +03:00
parent 554023c839
commit 8961841847
3 changed files with 56 additions and 1 deletions

View file

@ -70,6 +70,7 @@ async function readDefaultMenu({prefix}) {
return data;
}
module.exports._selectNames = selectNames;
function selectNames(names, panel, {selectFile, getCurrentByName}) {
for (const name of names) {
const file = getCurrentByName(name, panel);
@ -77,6 +78,7 @@ function selectNames(names, panel, {selectFile, getCurrentByName}) {
}
}
module.exports._compare = compare;
function compare(a, b) {
const result = [];