diff options
author | Doug Kearns <dougkearns@gmail.com> | 2016-01-29 23:26:05 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2016-01-29 23:26:05 +1100 |
commit | c9c9cea6d032113d17723b01a0e6a078ac63a39c (patch) | |
tree | 80712c19b5328a857d189947a2c5dd0033c1c943 /common/content | |
parent | b9849df56532a9fcbf2d46dfca7ea4eabc38160a (diff) | |
download | pentadactyl-c9c9cea6d032113d17723b01a0e6a078ac63a39c.tar.gz |
Remove remaining comprehensions.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/hints.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/common/content/hints.js b/common/content/hints.js index d2307657..a0df5846 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -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); |