1
0
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:
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

@@ -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);