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