1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-22 04:35:46 +01:00

Death to for each.

This commit is contained in:
Kris Maglione
2014-02-24 19:03:49 -08:00
parent 78a6de9c3a
commit 5b38465a1c
20 changed files with 48 additions and 46 deletions

View File

@@ -269,7 +269,7 @@ var Styles = Module("Styles", {
},
cleanup: function cleanup() {
for each (let hive in this.hives)
for (let hive of this.hives || [])
util.trapErrors("cleanup", hive);
this.hives = [];
this.user = this.addHive("user", this, true);
@@ -368,7 +368,7 @@ var Styles = Module("Styles", {
}, {
append: function (dest, src, sort) {
let props = {};
for each (let str in [dest, src])
for (let str of [dest, src])
for (let prop in Styles.propertyIter(str))
props[prop.name] = prop.value;