From 0488fa52fc7206662cb04de1c52cdeac13b454f7 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 14 Aug 2008 09:38:59 +0000 Subject: [PATCH] use args rather than arg as the first parameter to macro related functions for the sake of convention --- content/events.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/content/events.js b/content/events.js index 34bc8f02..e5272f9e 100644 --- a/content/events.js +++ b/content/events.js @@ -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 = ""; - var macroRef = liberator.events.getMacros(arg); + var macroRef = liberator.events.getMacros(args); for (var item in macroRef) str += ""; @@ -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); }
" + item + "   " + liberator.util.escapeHTML(macroRef[item]) + "