1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-28 15:45:46 +01:00

[bootstrap] Purge stale modules on upgrade as well as explicit rehash.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-25 18:41:32 -05:00
parent e5fd0ccf18
commit 26bd1c1075
6 changed files with 22 additions and 15 deletions

View File

@@ -949,6 +949,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
module.init();
}
},
"dactyl-purge": function () {
this.rehashing = true;
},
"toplevel-window-ready": function (window, data) {
window.addEventListener("DOMContentLoaded", wrapCallback(function listener(event) {
if (event.originalTarget === window.document) {
@@ -1163,9 +1166,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
}),
rehash: function () {
this.rehashing = true;
this.addon.userDisabled = true;
this.timeout(function () {
this.rehashing = true;
this.addon.userDisabled = true;
this.addon.userDisabled = false;
});
},