1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-17 10:05:45 +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

@@ -94,7 +94,7 @@ var Contexts = Module("contexts", {
},
cleanup: function () {
for each (let module in this.pluginModules)
for (let module of this.pluginModules)
util.trapErrors("unload", module);
this.pluginModules = {};
@@ -144,12 +144,12 @@ var Contexts = Module("contexts", {
},
cleanup: function () {
for each (let hive in this.groupList.slice())
for (let hive of this.groupList.slice())
util.trapErrors("cleanup", hive, "shutdown");
},
destroy: function () {
for each (let hive in values(this.groupList.slice()))
for (let hive of values(this.groupList.slice()))
util.trapErrors("destroy", hive, "shutdown");
for each (let plugin in this.modules.plugins.contexts) {
@@ -340,7 +340,7 @@ var Contexts = Module("contexts", {
delete contexts.pluginModules[canonical];
}
for each (let { plugins } in overlay.modules)
for (let { plugins } of overlay.modules)
if (plugins[this.NAME] == this)
delete plugins[this.name];
})