1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 18:05:47 +01:00

minor refactoring of :mapclear action

This commit is contained in:
Doug Kearns
2008-10-17 11:45:49 +00:00
parent bec8d33e59
commit 0b749e4e73

View File

@@ -223,11 +223,7 @@ function Mappings() //{{{
commands.add([ch + "mapc[lear]"],
"Remove all mappings" + modeDescription,
function ()
{
for (let i = 0; i < modes.length; i++)
mappings.removeAll(modes[i]);
},
function () { modes.forEach(function (mode) { mappings.removeAll(mode); }); },
{ argCount: "0" });
commands.add([ch + "unm[ap]"],