diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 05:39:27 +0200 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-04-26 05:39:27 +0200 |
commit | b0d7b1bb38ba3c6940d17c6974b5295d9a10e161 (patch) | |
tree | 9ab7f6e19215bf87dac611f51299953e7c710dd5 /application/palemoon/base/content | |
parent | 6c3f95480a191ce432ddfb2aa400a6d70c4884a8 (diff) | |
download | UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.gz UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.lz UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.tar.xz UXP-b0d7b1bb38ba3c6940d17c6974b5295d9a10e161.zip |
Bug 996448 - Lazify the loading of PluralForm.jsm everywhere
Diffstat (limited to 'application/palemoon/base/content')
-rw-r--r-- | application/palemoon/base/content/browser.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/application/palemoon/base/content/browser.js b/application/palemoon/base/content/browser.js index c9f0aa4aa..556e7a2b7 100644 --- a/application/palemoon/base/content/browser.js +++ b/application/palemoon/base/content/browser.js @@ -83,14 +83,8 @@ this.__defineSetter__("AddonManager", function (val) { return this.AddonManager = val; }); -this.__defineGetter__("PluralForm", function() { - Cu.import("resource://gre/modules/PluralForm.jsm"); - return this.PluralForm; -}); -this.__defineSetter__("PluralForm", function (val) { - delete this.PluralForm; - return this.PluralForm = val; -}); +XPCOMUtils.defineLazyModuleGetter(this, "PluralForm", + "resource://gre/modules/PluralForm.jsm"); XPCOMUtils.defineLazyModuleGetter(this, "AboutHomeUtils", "resource:///modules/AboutHomeUtils.jsm"); |