1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:12:27 +01:00

Clean up some old-style iterator gunk.

This commit is contained in:
Kris Maglione
2015-02-25 10:48:10 -08:00
parent d1937f708c
commit a8b1b278e2
12 changed files with 31 additions and 27 deletions

View File

@@ -1339,8 +1339,9 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
opts: update({
s: ["Status bar", [statusline.statusBar.id]]
}, config.guioptions),
setter: function (opts) {
for (let [opt, [, ids]] in Iterator(this.opts)) {
for (let [opt, [, ids]] of iter(this.opts)) {
ids.map(id => document.getElementById(id))
.forEach(function (elem) {
if (elem)