1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-01 10:55:44 +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

@@ -6,7 +6,7 @@
/** @scope modules */
const AutoCommand = new Struct("event", "pattern", "command");
const AutoCommand = Struct("event", "pattern", "command");
/**
* @instance autocommands
@@ -36,7 +36,7 @@ const AutoCommands = Module("autocommands", {
liberator.log("DEPRECATED: the events list arg to autocommands.add() should be an array of event names");
}
events.forEach(function (event) {
this._store.push(new AutoCommand(event, RegExp(regex), cmd));
this._store.push(AutoCommand(event, RegExp(regex), cmd));
}, this);
},