1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 14:44:20 +01:00

Ditch the bloody chrome registry.

This commit is contained in:
Kris Maglione
2011-01-13 16:04:32 -05:00
parent 203730ae62
commit 6fcd00e8ca
15 changed files with 122 additions and 101 deletions

View File

@@ -52,15 +52,21 @@ if (!JSMLoader || JSMLoader.bump != 1)
.getService(Components.interfaces.mozIJSSubScriptLoader)
.loadSubScript(url, global.global || global);
}
let global = Components.utils.import(url, target);
try {
let global = Components.utils.import(url, target);
if (name == "base.jsm") {
global.JSMLoader = this;
Components.utils.import(url, this.global);
this.global.EXPORTED_SYMBOLS = global.EXPORTED_SYMBOLS;
if (name == "base.jsm") {
global.JSMLoader = this;
Components.utils.import(url, this.global);
this.global.EXPORTED_SYMBOLS = global.EXPORTED_SYMBOLS;
}
return this.globals[url] = global;
}
catch (e) {
dump("Importing " + url + ": " + e + "\n" + (e.stack || Error().stack));
throw e;
}
return this.globals[url] = global;
},
cleanup: function unregister() {
for each (let factory in this.factories.splice(0))