зеркало из https://github.com/mozilla/gecko-dev.git
Bug 414461 - Delay importing of PluralForm and DownloadUtils for statusbar. r=mano, a1.9=dsicore
This commit is contained in:
Родитель
07cdba90e6
Коммит
0b1cc16fd0
|
@ -61,8 +61,6 @@
|
|||
let Ci = Components.interfaces;
|
||||
let Cu = Components.utils;
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Cu.import("resource://gre/modules/DownloadUtils.jsm");
|
||||
Cu.import("resource://gre/modules/PluralForm.jsm");
|
||||
|
||||
const kXULNS =
|
||||
"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
@ -6051,6 +6049,10 @@ let DownloadMonitorPanel = {
|
|||
* Initialize the status panel and member variables
|
||||
*/
|
||||
init: function DMP_init() {
|
||||
// Load the modules to help display strings
|
||||
Cu.import("resource://gre/modules/DownloadUtils.jsm");
|
||||
Cu.import("resource://gre/modules/PluralForm.jsm");
|
||||
|
||||
// Initialize "private" member variables
|
||||
this._panel = document.getElementById("download-monitor");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче