This is just some static backup of the original site, don't expect every link to work!

Ignore:
Timestamp:
Sep 16, 2008, 2:21:41 AM (14 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
b3755b
Parents:
97d350
Message:

some bugfixes, updates

File:
1 edited

Legend:

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

    r97d350 r67ba6a  
    3636    this.id = (this.__keyTranslator.isValidID(id))?id:"";
    3737    this.smtp = (this.__keyTranslator.isValidSMTP(smtp))?smtp:""
    38     this.extras = extras;
     38    this.extras = extras?extras:new vI_storageExtras();
    3939    this.comp = {   // holds the results of the last comparison for later creation of a compareMatrix
    4040        compareID : null,
     
    9494    // creates an Duplicate of the current IdentityData, cause usually we are working with a pointer
    9595    getDuplicate : function() {
    96         var newExtras = this.extras?this.extras.getDuplicate():null;
    97         return new identityData(this.email, this.fullName, this.id, this.smtp, newExtras, this.sideDescription);
     96        return new identityData(this.email, this.fullName, this.id, this.smtp, this.extras.getDuplicate(), this.sideDescription);
    9897    },
    9998
     
    141140
    142141    __equalsIdentity : function(identity) {
    143         var newExtras = new vI_storageExtras();
    144         newExtras.readValues(identity);
    145142        var testIdentity = new identityData(
    146143            identity.email,
    147144            identity.fullName,
    148145            identity.key,
    149             identity.smtpServerKey, newExtras)
     146            identity.smtpServerKey)
     147        testIdentity.extras.readIdentityValues(identity);
    150148        return (this.equals(testIdentity));
    151149    },
     
    158156        this.comp.equals.smtpName = this.__equalSMTP(compareIdentityData.smtp);
    159157        this.comp.equals.idName = this.__equalID(compareIdentityData.id);
    160         this.comp.equals.extras = (!this.extras || !compareIdentityData.extras || this.extras.equal(compareIdentityData.extras))
     158        this.comp.equals.extras = this.extras.equal(compareIdentityData.extras);
    161159
    162160        return (this.comp.equals.fullName && this.comp.equals.email && this.comp.equals.smtpName && this.comp.equals.idName && this.comp.equals.extras)
     
    195193            string += "<tr><td class='col1'>" + this[item+"Label"] + ":</td>" +
    196194                "<td class='col2'>" + this[item+"Html"] + "</td></tr>"
    197         if (this.extras) string += this.extras.getMatrix();
     195        string += this.extras.getMatrix();
    198196        return string;     
    199197    }
Note: See TracChangeset for help on using the changeset viewer.