1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:32:28 +01:00

[bootstrapped] Minor changes.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-25 05:31:52 -05:00
parent 73477dcdac
commit 84da91587a
3 changed files with 14 additions and 27 deletions

18
common/bootstrap.js vendored
View File

@@ -43,7 +43,7 @@ let components = {};
let getURI = null;
function startup(data, reason) {
dump("dactyl: bootstrap: startup\n");
dump("dactyl: bootstrap: startup " + reasonToString(reason) + "\n");
basePath = data.installPath;
if (!initialized) {
@@ -180,11 +180,13 @@ function init() {
}
function shutdown(data, reason) {
dump("dactyl: bootstrap: shutdown\n");
services.observer.notifyObservers(null, "dactyl-cleanup", null);
for (let factory in values(components))
// TODO: Categories;
factory.unregister();
dump("dactyl: bootstrap: shutdown " + reasonToString(reason) + "\n");
if (reason != APP_SHUTDOWN) {
services.observer.notifyObservers(null, "dactyl-cleanup", null);
for (let factory in values(components))
// TODO: Categories;
factory.unregister();
}
}
function reasonToString(reason) {
@@ -196,6 +198,6 @@ function reasonToString(reason) {
return name;
}
function install(data, reason) { dump("dactyl: bootstrap: install\n") }
function uninstall(data, reason) { dump("dactyl: bootstrap: uninstall\n") }
function install(data, reason) { dump("dactyl: bootstrap: install " + reasonToString(reason) + "\n") }
function uninstall(data, reason) { dump("dactyl: bootstrap: uninstall " + reasonToString(reason) + "\n") }