mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 00:37:58 +01:00
ES6-ify some things. Still a long way to go...
This commit is contained in:
@@ -1379,7 +1379,8 @@ var Hints = Module("hints", {
|
||||
},
|
||||
validator: function (value) {
|
||||
let values = DOM.Event.parse(value).map(DOM.Event.bound.stringify);
|
||||
return Option.validIf(Ary.uniq(values).length === values.length && values.length > 1,
|
||||
|
||||
return Option.validIf(new RealSet(values).size === values.length && values.length > 1,
|
||||
_("option.hintkeys.duplicate"));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user