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

Include config.json in XPI. Closes issue \#670.

This commit is contained in:
Kris Maglione
2011-10-01 13:02:26 -04:00
parent 2d7c78e162
commit 8ef35fee8b
5 changed files with 20 additions and 6 deletions

View File

@@ -15,6 +15,7 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
this.queue = [];
this.cache = {};
this.providers = {};
this.providing = {};
this.localProviders = {};
if (JSMLoader.cacheFlush)
@@ -176,8 +177,16 @@ var Cache = Module("Cache", XPCOM(Ci.nsIRequestObserver), {
}
if (Set.has(this.providers, name)) {
let [func, self] = this.providers[name];
this.cache[name] = func.call(self || this, name);
util.assert(!Set.add(this.providing, name),
"Already generating cache for " + name,
false);
try {
let [func, self] = this.providers[name];
this.cache[name] = func.call(self || this, name);
}
finally {
delete this.providing[name];
}
cache.queue.push([Date.now(), name]);
cache.processQueue();

View File

@@ -13,6 +13,9 @@ defineModule("help", {
var HelpBuilder = Class("HelpBuilder", {
init: function init() {
try {
// The versions munger will need to access the tag map
// during this process and without this we'll get an
// infinite loop.
help._data = this;
this.files = {};