1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 19:47:59 +01:00

Use Cu.unload where available.

--HG--
extra : rebase_source : 28ce17c49f2eeb6b330ce47e13e0543569348c59
This commit is contained in:
Kris Maglione
2011-07-12 19:10:16 -04:00
parent 7c85bffedd
commit 5b01369d62
3 changed files with 51 additions and 23 deletions

2
common/bootstrap.js vendored
View File

@@ -221,7 +221,7 @@ function init() {
createInstance: function () this.instance
});
Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = JSMLoader;
Cc[BOOTSTRAP_CONTRACT].getService().wrappedJSObject.loader = !Cu.unload && JSMLoader;
for each (let component in components)
component.register();