Changeset 67ba6a for chrome/content/v_identity/vI_storage.js
- Timestamp:
- Sep 16, 2008, 2:21:41 AM (14 years ago)
- Branches:
- lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
- Children:
- b3755b
- Parents:
- 97d350
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chrome/content/v_identity/vI_storage.js
r97d350 r67ba6a 36 36 this.id = (this.__keyTranslator.isValidID(id))?id:""; 37 37 this.smtp = (this.__keyTranslator.isValidSMTP(smtp))?smtp:"" 38 this.extras = extras ;38 this.extras = extras?extras:new vI_storageExtras(); 39 39 this.comp = { // holds the results of the last comparison for later creation of a compareMatrix 40 40 compareID : null, … … 94 94 // creates an Duplicate of the current IdentityData, cause usually we are working with a pointer 95 95 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); 98 97 }, 99 98 … … 141 140 142 141 __equalsIdentity : function(identity) { 143 var newExtras = new vI_storageExtras();144 newExtras.readValues(identity);145 142 var testIdentity = new identityData( 146 143 identity.email, 147 144 identity.fullName, 148 145 identity.key, 149 identity.smtpServerKey, newExtras) 146 identity.smtpServerKey) 147 testIdentity.extras.readIdentityValues(identity); 150 148 return (this.equals(testIdentity)); 151 149 }, … … 158 156 this.comp.equals.smtpName = this.__equalSMTP(compareIdentityData.smtp); 159 157 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); 161 159 162 160 return (this.comp.equals.fullName && this.comp.equals.email && this.comp.equals.smtpName && this.comp.equals.idName && this.comp.equals.extras) … … 195 193 string += "<tr><td class='col1'>" + this[item+"Label"] + ":</td>" + 196 194 "<td class='col2'>" + this[item+"Html"] + "</td></tr>" 197 if (this.extras)string += this.extras.getMatrix();195 string += this.extras.getMatrix(); 198 196 return string; 199 197 }
Note: See TracChangeset
for help on using the changeset viewer.