1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 11:44:11 +01:00

Remove unnecessary use of values() when iterating over arrays.

This commit is contained in:
Doug Kearns
2015-05-11 23:56:31 +10:00
parent a8e70d3f43
commit 48acf656ec
27 changed files with 81 additions and 80 deletions

View File

@@ -1048,7 +1048,7 @@ var DOM = Class("DOM", {
this.code_nativeKey = {};
for (let list of values(this.keyTable))
for (let v of values(list)) {
for (let v of list) {
if (v.length == 1)
v = v.toLowerCase();
this.key_key[v.toLowerCase()] = v;
@@ -1477,7 +1477,7 @@ var DOM = Class("DOM", {
*/
compileMatcher: function compileMatcher(list) {
let xpath = [], css = [];
for (let elem of values(list))
for (let elem of list)
if (/^xpath:/.test(elem))
xpath.push(elem.substr(6));
else