mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:02:31 +02:00
minor refactoring of Map constructor
This commit is contained in:
1 parent
d8741b5140
commit
da4f0ae375
1 file changed
+1
-1
+1
-1
@@ -38,7 +38,7 @@ liberator.Map = function (modes, cmds, description, action, extraInfo) //{{{
|
||||
|
||||
this.modes = modes;
|
||||
// only store keysyms with uppercase modifier strings
|
||||
this.names = cmds.map(function (cmd) { return cmd.replace(/[casm]-/g, function (name) { return name.toUpperCase(); }); });
|
||||
this.names = cmds.map(function (cmd) cmd.replace(/[casm]-/g, String.toUpperCase));
|
||||
this.action = action;
|
||||
|
||||
this.flags = extraInfo.flags || 0;
|
||||
|
||||
Reference in new issue
Block a user