1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-03 03:25:45 +01:00

Purge unnecessary uses of args.string.

This commit is contained in:
Kris Maglione
2010-09-25 02:45:19 -04:00
parent d1ecfe8041
commit e6c716d1e3
10 changed files with 39 additions and 34 deletions

View File

@@ -591,7 +591,7 @@ const Tabs = Module("tabs", {
"Execute a command and tell it to output in a new tab",
function (args) {
dactyl.forceNewTab = true;
dactyl.execute(args.string, null, true);
dactyl.execute(args[0], null, true);
dactyl.forceNewTab = false;
}, {
argCount: "+",
@@ -605,7 +605,7 @@ const Tabs = Module("tabs", {
function (args) {
for (let i = 0; i < tabs.count; i++) {
tabs.select(i);
dactyl.execute(args.string, null, true);
dactyl.execute(args[0], null, true);
}
}, {
argCount: "1",
@@ -756,7 +756,7 @@ const Tabs = Module("tabs", {
commands.add(["tabopen", "t[open]", "tabnew"],
"Open one or more URLs in a new tab",
function (args) {
dactyl.open(args.string || "about:blank", { from: "tabopen", where: dactyl.NEW_TAB, background: args.bang });
dactyl.open(args[0] || "about:blank", { from: "tabopen", where: dactyl.NEW_TAB, background: args.bang });
}, {
bang: true,
completer: function (context) completion.url(context),