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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user