1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 06:54:12 +01:00

Formatting fixes.

This commit is contained in:
Doug Kearns
2009-11-14 21:57:32 +11:00
parent 607e65bf6f
commit 6cc43ad29a
11 changed files with 48 additions and 49 deletions

View File

@@ -55,7 +55,7 @@ const ModuleBase = Class("ModuleBase", {
function Module(name, prototype, classProperties, moduleInit) {
var base = ModuleBase;
if (callable(prototype))
base = Array.splice(arguments, 1, 1)[0]
base = Array.splice(arguments, 1, 1)[0];
const module = Class(name, base, prototype, classProperties);
module.INIT = moduleInit || {};
module.requires = prototype.requires || [];
@@ -96,7 +96,7 @@ window.addEventListener("load", function () {
try {
if (mod in module.INIT)
init(mod, module)();
delete module.INIT[mod]
delete module.INIT[mod];
}
catch (e) {
if (modules.liberator)
@@ -117,7 +117,7 @@ window.addEventListener("load", function () {
}
}
Module.list.forEach(load);
deferredInit["load"].forEach(call)
deferredInit["load"].forEach(call);
for (let module in values(Module.list))
delete module.INIT;