Remove remaining comprehensions.

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

No files matched your search

+4 -3
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);