1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 07:23:33 +01:00

Make "all" toggle other items in "activate", "eventignore", "newtab", and "sanitizeitems".

This commit is contained in:
Kris Maglione
2010-10-12 14:29:11 -04:00
parent 2e3f47b19e
commit 4351bb675b
5 changed files with 22 additions and 11 deletions

View File

@@ -110,7 +110,7 @@ const AutoCommands = Module("autocommands", {
* @param {Object} args The args to pass to each autocommand.
*/
trigger: function (event, args) {
if (options.get("eventignore").has("all", event))
if (options.get("eventignore").has(event))
return;
let autoCmds = this._store.filter(function (autoCmd) autoCmd.event == event);
@@ -269,7 +269,8 @@ const AutoCommands = Module("autocommands", {
"List of autocommand event names which should be ignored",
"stringlist", "",
{
completer: function () Iterator(update({ all: "All Events" }, config.autocommands))
completer: function () Iterator(update({ all: "All Events" }, config.autocommands)),
has: Option.has.toggleAll
});
}
});