mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 00:05:46 +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:
@@ -607,12 +607,12 @@ liberator.Events = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["delmac[ros]"],
|
liberator.commands.add(["delmac[ros]"],
|
||||||
"Delete macros",
|
"Delete macros",
|
||||||
function (arg)
|
function (args)
|
||||||
{
|
{
|
||||||
if (!arg)
|
if (!args)
|
||||||
liberator.echoerr("E474: Invalid argument");
|
liberator.echoerr("E474: Invalid argument");
|
||||||
else
|
else
|
||||||
liberator.events.deleteMacros(arg);
|
liberator.events.deleteMacros(args);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
completer: function (filter) { return getMacroCompletions(filter); }
|
completer: function (filter) { return getMacroCompletions(filter); }
|
||||||
@@ -620,10 +620,10 @@ liberator.Events = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["macros"],
|
liberator.commands.add(["macros"],
|
||||||
"List all macros",
|
"List all macros",
|
||||||
function (arg)
|
function (args)
|
||||||
{
|
{
|
||||||
var str = "<table>";
|
var str = "<table>";
|
||||||
var macroRef = liberator.events.getMacros(arg);
|
var macroRef = liberator.events.getMacros(args);
|
||||||
for (var item in macroRef)
|
for (var item in macroRef)
|
||||||
str += "<tr><td> " + item + " </td><td>" +
|
str += "<tr><td> " + item + " </td><td>" +
|
||||||
liberator.util.escapeHTML(macroRef[item]) + "</td></tr>";
|
liberator.util.escapeHTML(macroRef[item]) + "</td></tr>";
|
||||||
@@ -638,12 +638,12 @@ liberator.Events = function () //{{{
|
|||||||
|
|
||||||
liberator.commands.add(["pl[ay]"],
|
liberator.commands.add(["pl[ay]"],
|
||||||
"Replay a recorded macro",
|
"Replay a recorded macro",
|
||||||
function (arg)
|
function (args)
|
||||||
{
|
{
|
||||||
if (!arg)
|
if (!args)
|
||||||
liberator.echoerr("E474: Invalid argument");
|
liberator.echoerr("E474: Invalid argument");
|
||||||
else
|
else
|
||||||
liberator.events.playMacro(arg);
|
liberator.events.playMacro(args);
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
completer: function (filter) { return getMacroCompletions(filter); }
|
completer: function (filter) { return getMacroCompletions(filter); }
|
||||||
|
|||||||
Reference in New Issue
Block a user