mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:47:58 +01:00
ES6-ify some things. Still a long way to go...
This commit is contained in:
@@ -685,8 +685,10 @@ var Modes = Module("modes", {
|
||||
},
|
||||
|
||||
get values() {
|
||||
return Ary.toObject([[m.name.toLowerCase(), m.description]
|
||||
for (m of modes._modes) if (!m.hidden)]);
|
||||
return Ary.toObject(
|
||||
modes._modes.filter(mode => !mode.hidden)
|
||||
.map(mode => [mode.name.toLowerCase(),
|
||||
mode.description]));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user