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

pass all command actions an args object - IMPORTANT: this will possibly break

your plugin, read the NEWS file
This commit is contained in:
Doug Kearns
2008-10-17 11:39:25 +00:00
parent dba3870773
commit bec8d33e59
15 changed files with 95 additions and 29 deletions

View File

@@ -279,6 +279,8 @@ function Options() //{{{
"Set or list a variable",
function (args)
{
args = args.string;
if (!args)
{
var str =
@@ -387,7 +389,7 @@ function Options() //{{{
"Set local option",
function (args, special, count)
{
commands.get("set").execute(args, special, count, { scope: options.OPTION_SCOPE_LOCAL });
commands.get("set").execute(args.string, special, count, { scope: options.OPTION_SCOPE_LOCAL });
},
{
bang: true,
@@ -403,7 +405,7 @@ function Options() //{{{
"Set global option",
function (args, special, count)
{
commands.get("set").execute(args, special, count, { scope: options.OPTION_SCOPE_GLOBAL });
commands.get("set").execute(args.string, special, count, { scope: options.OPTION_SCOPE_GLOBAL });
},
{
bang: true,
@@ -474,6 +476,8 @@ function Options() //{{{
"Set an option",
function (args, special, count, modifiers)
{
args = args.string;
if (special)
{
var onlyNonDefault = false;