mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 23:34:10 +01:00
Make "all" toggle other items in "activate", "eventignore", "newtab", and "sanitizeitems".
This commit is contained in:
@@ -376,6 +376,12 @@ const Option = Class("Option", {
|
||||
*/
|
||||
SCOPE_BOTH: 3,
|
||||
|
||||
has: {
|
||||
toggleAll: function toggleAll() toggleAll.supercall(this, "all")
|
||||
? Array.some(arguments, function (val) this.value.indexOf(val) === -1, this)
|
||||
: toggleAll.superapply(this, arguments),
|
||||
},
|
||||
|
||||
parseRegex: function (value, result, flags) {
|
||||
let [, bang, val] = /^(!?)(.*)/.exec(value);
|
||||
let re = RegExp(Option.dequote(val), flags);
|
||||
|
||||
Reference in New Issue
Block a user