1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-08 04:44:12 +01:00

whitespace fixes and revert some overly aggressive use of expression closures

This commit is contained in:
Doug Kearns
2008-10-04 10:18:53 +00:00
parent 156fa5d56f
commit 6ef73cf313
16 changed files with 84 additions and 71 deletions

View File

@@ -88,7 +88,7 @@ liberator.Mappings = function () //{{{
function addMap(map, userMap)
{
var where = userMap ? user : main;
map.modes.forEach(function (mode) where[mode].push(map));
map.modes.forEach(function (mode) { where[mode].push(map); });
}
function getMap(mode, cmd, stack)
@@ -202,12 +202,12 @@ liberator.Mappings = function () //{{{
liberator.commands.add([ch ? ch + "m[ap]" : "map"],
"Map a key sequence" + modeDescription,
function (args) map(args, modes, false),
function (args) { map(args, modes, false); },
{ completer: function (filter) liberator.completion.userMapping(filter, modes) });
liberator.commands.add([ch + "no[remap]"],
"Map a key sequence without remapping keys" + modeDescription,
function (args) map(args, modes, true));
function (args) { map(args, modes, true); });
liberator.commands.add([ch + "mapc[lear]"],
"Remove all mappings" + modeDescription,