1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-23 18:03:32 +01:00

Simplifyification.

This commit is contained in:
Kris Maglione
2011-10-19 22:45:55 -04:00
parent e43d81730e
commit 419d9b61f8
3 changed files with 14 additions and 13 deletions

View File

@@ -625,15 +625,13 @@ var Mappings = Module("mappings", {
.map(function (hive) [
{
command: "map",
options: array([
hive.name !== "user" && ["-group", hive.name],
map.count && ["-count"],
["-modes", uniqueModes(map.modes)],
["-description", map.description],
map.silent && ["-silent"]])
.filter(util.identity)
.toObject(),
options: {
"-count": map.count ? null : undefined,
"-description": map.description,
"-group": hive.name == "user" ? undefined : hive.name,
"-modes": uniqueModes(map.modes),
"-silent": map.silent ? null : undefined
},
arguments: [map.names[0]],
literalArg: map.rhs,
ignoreDefaults: true