Changeset 7a2f20


Ignore:
Timestamp:
Aug 11, 2008, 5:53:19 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
ed9248
Parents:
49a198
Message:

gAccountManager is not always available, use own one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_helper.js

    r49a198 r7a2f20  
    66    ID_NAMES : null,
    77    DEFAULT_TAG : null,
     8    AccountManager : Components.classes["@mozilla.org/messenger/account-manager;1"]
     9                .getService(Components.interfaces.nsIMsgAccountManager),
    810   
    911    __getSMTPnames : function () {
     
    3032    __getIDnames : function () {
    3133        this.ID_NAMES = [];
    32         var accounts = queryISupportsArray(gAccountManager.accounts, Components.interfaces.nsIMsgAccount);
     34        var accounts = queryISupportsArray(this.AccountManager.accounts, Components.interfaces.nsIMsgAccount);
    3335        if (typeof(sortAccounts)=="function") // TB 3.x
    3436            accounts.sort(sortAccounts);
Note: See TracChangeset for help on using the changeset viewer.