1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 01:14:10 +01:00

use args rather than arg as the first parameter to macro related functions for

the sake of convention
This commit is contained in:
Doug Kearns
2008-08-14 09:38:59 +00:00
parent a234aa747e
commit 0488fa52fc

View File

@@ -607,12 +607,12 @@ liberator.Events = function () //{{{
liberator.commands.add(["delmac[ros]"],
"Delete macros",
function (arg)
function (args)
{
if (!arg)
if (!args)
liberator.echoerr("E474: Invalid argument");
else
liberator.events.deleteMacros(arg);
liberator.events.deleteMacros(args);
},
{
completer: function (filter) { return getMacroCompletions(filter); }
@@ -620,10 +620,10 @@ liberator.Events = function () //{{{
liberator.commands.add(["macros"],
"List all macros",
function (arg)
function (args)
{
var str = "<table>";
var macroRef = liberator.events.getMacros(arg);
var macroRef = liberator.events.getMacros(args);
for (var item in macroRef)
str += "<tr><td> " + item + " &nbsp; </td><td>" +
liberator.util.escapeHTML(macroRef[item]) + "</td></tr>";
@@ -638,12 +638,12 @@ liberator.Events = function () //{{{
liberator.commands.add(["pl[ay]"],
"Replay a recorded macro",
function (arg)
function (args)
{
if (!arg)
if (!args)
liberator.echoerr("E474: Invalid argument");
else
liberator.events.playMacro(arg);
liberator.events.playMacro(args);
},
{
completer: function (filter) { return getMacroCompletions(filter); }