Skip to content

Commit

Permalink
Bind Cu shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaier committed Mar 18, 2013
1 parent b85da8d commit 95d592a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions loader.jsm
Expand Up @@ -13,10 +13,9 @@ const {
Constructor: ctor,
manager: Cm
} = Components;
const {
getWeakReference: weak,
reportError: reportError
} = Cu;

const weak = Cu.getWeakReference.bind(Cu);
const reportError = Cu.reportError.bind(Cu);

Cm.QueryInterface(Ci.nsIComponentRegistrar);

Expand Down

0 comments on commit 95d592a

Please sign in to comment.