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

Replace weird mystery meat args of mapping actions with a proper object.

This commit is contained in:
Kris Maglione
2010-12-29 22:21:00 -05:00
parent f67a50147e
commit cb97f1cd25
12 changed files with 87 additions and 98 deletions

View File

@@ -1253,7 +1253,7 @@ var Events = Module("events", {
mappings.add([modes.NORMAL, modes.TEXT_AREA, modes.PLAYER].filter(util.identity),
["@"], "Play a macro",
function (count, arg) {
function ({ arg, count }) {
count = Math.max(count, 1);
while (count-- && events.playMacro(arg))
;