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

Fix some accidentally committed code.

This commit is contained in:
Kris Maglione
2011-01-09 15:58:46 -05:00
parent f4ce38693f
commit 415386a183

View File

@@ -22,7 +22,6 @@ if (!JSMLoader || JSMLoader.bump != 1)
load: function load(url, target) { load: function load(url, target) {
let stale = this.stale[url]; let stale = this.stale[url];
if (stale) { if (stale) {
dump("dactyl: JSMLoader: stale: " + url + " " + stale + "\n");
delete this.stale[url]; delete this.stale[url];
let global = this.globals[url]; let global = this.globals[url];
@@ -38,12 +37,13 @@ if (!JSMLoader || JSMLoader.bump != 1)
Components.utils.reportError(e); Components.utils.reportError(e);
} }
if (stale === this.getTarget(url))
Components.classes["@mozilla.org/moz/jssubscript-loader;1"] Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Components.interfaces.mozIJSSubScriptLoader) .getService(Components.interfaces.mozIJSSubScriptLoader)
.loadSubScript(url, global); .loadSubScript(url, global);
} }
let global = Components.utils.import(moduleUrl, target); let global = Components.utils.import(url, target);
return this.globals[url] = global; return this.globals[url] = global;
}, },
cleanup: function unregister() { cleanup: function unregister() {