mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:57:59 +01:00
Fix some accidentally committed code.
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user