1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 03:47:58 +01:00

Remove some redundant uses of "new".

This commit is contained in:
Doug Kearns
2009-11-14 23:07:56 +11:00
parent 90410f2bf6
commit 52749d6722
12 changed files with 23 additions and 21 deletions

View File

@@ -239,7 +239,7 @@ const Command = Class("Command", {
/**
* @instance commands
*/
const ArgType = new Struct("description", "parse");
const ArgType = Struct("description", "parse");
const Commands = Module("commands", {
init: function () {
this._exCommands = [];
@@ -336,7 +336,7 @@ const Commands = Module("commands", {
* @optional
*/
add: function (names, description, action, extra) {
return this._addCommand(new Command(names, description, action, extra), false);
return this._addCommand(Command(names, description, action, extra), false);
},
/**
@@ -356,7 +356,7 @@ const Commands = Module("commands", {
extra.user = true;
description = description || "User defined command";
return this._addCommand(new Command(names, description, action, extra), replace);
return this._addCommand(Command(names, description, action, extra), replace);
},
/**