1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:48:00 +01:00

trivial refactoring of :emenu and :chdir actions

This commit is contained in:
Doug Kearns
2008-12-19 23:59:25 +11:00
committed by Kris Maglione
parent 39d6542e80
commit 89dc3c2078
2 changed files with 14 additions and 14 deletions

View File

@@ -289,18 +289,18 @@ const liberator = (function () //{{{
"Execute the specified menu item from the command line",
function (args)
{
args = args.literalArg;
let arg = args.literalArg;
let items = getMenuItems();
if (!items.some(function (i) i.fullMenuPath == args))
if (!items.some(function (i) i.fullMenuPath == arg))
{
liberator.echoerr("E334: Menu not found: " + args);
liberator.echoerr("E334: Menu not found: " + arg);
return;
}
for (let [,item] in Iterator(items))
{
if (item.fullMenuPath == args)
if (item.fullMenuPath == arg)
item.doCommand();
}
},