1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 13:07:57 +01:00

Some cleanup to last commit.

--HG--
extra : rebase_source : feb13327849ac80971b113148c6f560af69e59fa
This commit is contained in:
Kris Maglione
2010-09-22 12:31:54 -04:00
parent 7315817acd
commit 97d5170ec5

View File

@@ -257,7 +257,7 @@ const Hints = Module("hints", {
continue; continue;
let computedStyle = doc.defaultView.getComputedStyle(elem, null); let computedStyle = doc.defaultView.getComputedStyle(elem, null);
if (computedStyle["visibility"] != "visible" || computedStyle["display"] == "none") if (computedStyle.visibility != "visible" || computedStyle.display == "none")
continue; continue;
if (isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement])) if (isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement]))
@@ -1065,8 +1065,8 @@ const Hints = Module("hints", {
["0123456789", "Numbers"], ["0123456789", "Numbers"],
["asdfg;lkjh", "Home Row"]], ["asdfg;lkjh", "Home Row"]],
validator: function (value) { validator: function (value) {
let values = events.fromString(value).map(events.closure.toString).sort(); let values = events.fromString(value).map(events.closure.toString);
return array.equals(array.uniq(values), values); return array.uniq(values).length === values.length;
} }
}); });