Changeset 16bb7e


Ignore:
Timestamp:
Dec 1, 2008, 2:32:42 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
697949
Parents:
612fd5
Message:

queryISupportsArray as part of MsgComposeCommands?.js not loaded on upgrade.

File:
1 edited

Legend:

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

    r612fd5 r16bb7e  
    3030        if (!this.DEFAULT_TAG) this.DEFAULT_TAG = document.getElementById("bundle_messenger").getString("defaultServerTag");
    3131    },
     32   
     33    __queryISupportsArray : function(supportsArray, iid) {
     34        var result = new Array;
     35        for (var i=0; i<supportsArray.Count(); i++) {
     36        // dump(i + "," + result[i] + "\n");
     37        result[i] = supportsArray.QueryElementAt(i, iid);
     38        }
     39        return result;
     40    },
     41   
    3242    __getIDnames : function () {
    3343        this.ID_NAMES = [];
    34         var accounts = queryISupportsArray(this.AccountManager.accounts, Components.interfaces.nsIMsgAccount);
     44        var accounts = this.__queryISupportsArray(this.AccountManager.accounts, Components.interfaces.nsIMsgAccount);
    3545        if (typeof(sortAccounts)=="function") // TB 3.x
    3646            accounts.sort(sortAccounts);
     
    4050            var server = accounts[i].incomingServer;
    4151            if (!server) continue;
    42             var identites = queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
     52            var identites = this.__queryISupportsArray(accounts[i].identities, Components.interfaces.nsIMsgIdentity);
    4353            for (var j in identites)
    4454                this.ID_NAMES[identites[j].key] = identites[j].identityName;
Note: See TracChangeset for help on using the changeset viewer.