1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-24 17:35:51 +01:00

More bootstrap work.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-24 09:21:14 -05:00
parent 062a2d8ece
commit baecb996c3
12 changed files with 204 additions and 25 deletions

View File

@@ -126,7 +126,7 @@ defineModule.dump = function dump_() {
msg = util.objectToString(msg);
return msg;
}).join(", ");
let name = loaded.services ? services["dactyl:"].name : "dactyl";
let name = loaded.services && loaded.prefs && services["dactyl:"] ? services["dactyl:"].name : "dactyl";
dump(String.replace(msg, /\n?$/, "\n")
.replace(/^./gm, name + ": $&"));
}
@@ -179,8 +179,8 @@ defineModule("base", {
"call", "callable", "ctypes", "curry", "debuggerProperties", "defineModule",
"deprecated", "endModule", "forEach", "isArray", "isGenerator",
"isinstance", "isObject", "isString", "isSubclass", "iter", "iterAll",
"keys", "memoize", "octal", "properties", "set", "update", "values",
"withCallerGlobal"
"keys", "memoize", "octal", "properties", "require", "set", "update",
"values", "withCallerGlobal"
],
use: ["services", "util"]
});