Bug 414461 - Delay importing of PluralForm and DownloadUtils for statusbar. r=mano, a1.9=dsicore

This commit is contained in:
edward.lee@engineering.uiuc.edu 2008-01-28 20:59:30 -08:00
Родитель ef3a964539
Коммит da1691de27
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -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");