1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 16:12:26 +01:00

make use of our argsParser to handle commands with zero arguments

This commit is contained in:
Doug Kearns
2008-08-14 08:24:02 +00:00
parent 00f8ed632e
commit a234aa747e
12 changed files with 97 additions and 33 deletions

View File

@@ -460,7 +460,11 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["pa[geinfo]"],
"Show various page information",
function () { liberator.buffer.showPageInfo(true); });
function ()
{
liberator.buffer.showPageInfo(true);
},
{ argCount: "0" });
liberator.commands.add(["pagest[yle]"],
"Select the author style sheet to apply",
@@ -485,7 +489,11 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["re[load]"],
"Reload current page",
function (args, special) { liberator.tabs.reload(getBrowser().mCurrentTab, special); });
function (args, special)
{
liberator.tabs.reload(getBrowser().mCurrentTab, special);
},
{ argCount: "0" });
liberator.commands.add(["sav[eas]", "w[rite]"],
"Save current document to disk",
@@ -505,7 +513,11 @@ liberator.Buffer = function () //{{{
liberator.commands.add(["st[op]"],
"Stop loading",
function () { BrowserStop(); });
function ()
{
BrowserStop();
},
{ argCount: "0" });
liberator.commands.add(["vie[wsource]"],
"View source code of current document",