1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 00:37:58 +01:00

Remove remaining comprehensions.

This commit is contained in:
Doug Kearns
2016-01-29 23:26:05 +11:00
parent b9849df565
commit c9c9cea6d0
5 changed files with 32 additions and 19 deletions

View File

@@ -290,9 +290,10 @@ var HintSession = Class("HintSession", CommandMode, {
let doc = win.document;
memoize(doc, "dactylLabels", () =>
iter([l.getAttribute("for"), l]
for (l of doc.querySelectorAll("label[for]")))
.toObject());
iter(function* () {
for (let l of doc.querySelectorAll("label[for]"))
yield [l.getAttribute("for"), l];
}()).toObject());
let [offsetX, offsetY] = this.getContainerOffsets(doc);