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

Fix lost keys when opening command line for the first time. Fix cleanup issue.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-06 13:50:00 -05:00
parent 0b02483ff1
commit 78e8c3c20e
4 changed files with 25 additions and 20 deletions

View File

@@ -917,6 +917,7 @@ Module.INIT = {
let module = this, objs = {};
for (let i in locals)
module = objs[i] = Object.create(module);
module.isLocalModule = true;
modules.jsmodules[this.constructor.className] = module;
locals.reverse().forEach(function (fn, i) update(objs[i], fn.apply(module, args)))

View File

@@ -156,11 +156,16 @@ var Overlay = Module("Overlay", {
"completion",
"config",
"downloads",
"finder",
"highlight",
"io",
"javascript",
"overlay",
"prefs",
"services",
"storage",
"styles",
"template",
"util"
].forEach(function (name) defineModule.time("load", name, require, null, jsmodules, name));
@@ -174,17 +179,12 @@ var Overlay = Module("Overlay", {
"commands",
"editor",
"events",
"finder",
"highlight",
"hints",
"io",
"mappings",
"marks",
"mow",
"options",
"statusline",
"styles",
"template"
"statusline"
].forEach(function (name) defineModule.time("load", name, modules.load, modules, name));
config.scripts.forEach(modules.load);