1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-07 08:15:46 +01:00

minor refactoring of Map constructor

This commit is contained in:
Doug Kearns
2008-09-18 14:23:58 +00:00
parent d8741b5140
commit da4f0ae375

View File

@@ -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;