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

Add cache module. Cleanup help and DTD generation. Fix :help version generation issues. Fix other assorted issues.

This commit is contained in:
Kris Maglione
2011-09-30 01:36:45 -04:00
parent 0cf1151e0a
commit 39e8bf7a06
15 changed files with 587 additions and 314 deletions

2
common/bootstrap.js vendored
View File

@@ -207,6 +207,7 @@ function init() {
let pref = "extensions.dactyl.cacheFlushCheck";
let val = addon.version + "-" + hardSuffix;
if (!Services.prefs.prefHasUserValue(pref) || Services.prefs.getCharPref(pref) != val) {
var cacheFlush = true;
Services.obs.notifyObservers(null, "startupcache-invalidate", "");
Services.prefs.setCharPref(pref, val);
}
@@ -244,6 +245,7 @@ function init() {
JSMLoader.load(BOOTSTRAP_JSM, global);
JSMLoader.init(suffix);
JSMLoader.cacheFlush = cacheFlush;
JSMLoader.load("base.jsm", global);
if (!(BOOTSTRAP_CONTRACT in Cc)) {