diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-07-16 18:51:59 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-07-16 18:51:59 -0400 |
commit | 9002a78d14854692a7ca36cbe9e8a9a92ea31636 (patch) | |
tree | a61e195ec4ea373f650b9f6692bede831c7b84df /common/content/modes.js | |
parent | 328b992969057cb643ac6e68ad76f7a98b064ba2 (diff) | |
download | pentadactyl-9002a78d14854692a7ca36cbe9e8a9a92ea31636.tar.gz |
s/\bset\b/Set/g
Diffstat (limited to 'common/content/modes.js')
-rw-r--r-- | common/content/modes.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/content/modes.js b/common/content/modes.js index 0e16b009..3f1b997b 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -506,7 +506,7 @@ var Modes = Module("modes", { allBases: Class.memoize(function () { let seen = {}, res = [], queue = this.bases.slice(); for (let mode in array.iterValues(queue)) - if (!set.add(seen, mode)) { + if (!Set.add(seen, mode)) { res.push(mode); queue.push.apply(queue, mode.bases); } @@ -616,7 +616,7 @@ var Modes = Module("modes", { return (array.nth(this.value, function (v) val.some(function (m) m.name === v.mode), 0) || { result: default_ }).result; - return set.has(this.valueMap, val) ? this.valueMap[val] : default_; + return Set.has(this.valueMap, val) ? this.valueMap[val] : default_; }, setter: function (vals) { @@ -631,7 +631,7 @@ var Modes = Module("modes", { return vals; }, - validator: function validator(vals) vals.map(function (v) v.replace(/^!/, "")).every(set.has(this.values)), + validator: function validator(vals) vals.map(function (v) v.replace(/^!/, "")).every(Set.has(this.values)), get values() array.toObject([[m.name.toLowerCase(), m.description] for (m in values(modes._modes)) if (!m.hidden)]) }; |