Skip to content

Commit

Permalink
Export Components.manager as Cm
Browse files Browse the repository at this point in the history
Also QI that thing to nsIComponentRegistry
  • Loading branch information
nmaier committed May 24, 2012
1 parent 57e7fd2 commit bdc4ffe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion loader.jsm
Expand Up @@ -10,13 +10,16 @@ const {
interfaces: Ci,
utils: Cu,
results: Cr,
Constructor: ctor
Constructor: ctor,
manager: Cm
} = Components;
const {
getWeakReference: weak,
reportError: reportError
} = Cu;

Cm.QueryInterface(Ci.nsIComponentRegistrar);

Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource://gre/modules/Services.jsm");

Expand Down

0 comments on commit bdc4ffe

Please sign in to comment.