summaryrefslogtreecommitdiff
path: root/common/modules/base.jsm
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-01-09 15:58:46 -0500
committerKris Maglione <maglione.k@gmail.com>2011-01-09 15:58:46 -0500
commit415386a183cb15de80ddc35ff49be620423333ca (patch)
treee80bdc535b8285e3ba6e64793759253331415fab /common/modules/base.jsm
parentf4ce38693f0be669d8ee4f4b3643d61bb5271d9b (diff)
downloadpentadactyl-415386a183cb15de80ddc35ff49be620423333ca.tar.gz
Fix some accidentally committed code.
Diffstat (limited to 'common/modules/base.jsm')
-rw-r--r--common/modules/base.jsm10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/modules/base.jsm b/common/modules/base.jsm
index 823a17b3..d0fbdc51 100644
--- a/common/modules/base.jsm
+++ b/common/modules/base.jsm
@@ -22,7 +22,6 @@ if (!JSMLoader || JSMLoader.bump != 1)
load: function load(url, target) {
let stale = this.stale[url];
if (stale) {
- dump("dactyl: JSMLoader: stale: " + url + " " + stale + "\n");
delete this.stale[url];
let global = this.globals[url];
@@ -38,12 +37,13 @@ if (!JSMLoader || JSMLoader.bump != 1)
Components.utils.reportError(e);
}
- Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
- .getService(Components.interfaces.mozIJSSubScriptLoader)
- .loadSubScript(url, global);
+ if (stale === this.getTarget(url))
+ Components.classes["@mozilla.org/moz/jssubscript-loader;1"]
+ .getService(Components.interfaces.mozIJSSubScriptLoader)
+ .loadSubScript(url, global);
}
- let global = Components.utils.import(moduleUrl, target);
+ let global = Components.utils.import(url, target);
return this.globals[url] = global;
},
cleanup: function unregister() {