1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 05:03:32 +01:00

Fix some more unfortunate bugs. Yay tests.

This commit is contained in:
Kris Maglione
2011-02-03 10:20:17 -05:00
parent 440f4872b1
commit b2358eb152
3 changed files with 13 additions and 8 deletions

View File

@@ -277,7 +277,11 @@ var Overlay = Module("Overlay", {
});
});
defineModule.modules.forEach(function (mod) {
Object.keys(mod.INIT).forEach(function (name) {
let names = set(Object.keys(mod.INIT));
if ("init" in mod.INIT)
set.add(names, "init");
keys(names).forEach(function (name) {
deferredInit[name] = deferredInit[name] || [];
deferredInit[name].push(function () {
// util.dump("INIT: " + mod.constructor.className + ":" + name);