mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 10:02:29 +02:00
Fix a wrong reference.
This commit is contained in:
1 parent
efaba491cd
commit
2e173d3e2e
1 file changed
+3
-1
Regular → Executable
+3
-1
@@ -31,12 +31,14 @@ const AutoCommands = Module("autocommands", {
|
||||
* @param {string} cmd The Ex command to run.
|
||||
*/
|
||||
add: function (events, regex, cmd) {
|
||||
let self = this;
|
||||
|
||||
if (typeof events == "string") {
|
||||
events = events.split(",");
|
||||
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));
|
||||
self._store.push(new AutoCommand(event, RegExp(regex), cmd));
|
||||
});
|
||||
},
|
||||
|
||||
|
||||
Reference in new issue
Block a user