Changeset acf7ad


Ignore:
Timestamp:
Aug 25, 2018, 12:04:24 PM (2 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
d0fa65
Parents:
ee2df4
Message:

added way to take over contents of identityData, added accountkey to idObj

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_identityData.js

    ree2df4 racf7ad  
    169169    return new identityData(this._currentWindow, this.email, this.fullName, this.id.key, this.smtp.key, this.extras ? this.extras.getDuplicate() : null,
    170170      this.sideDescription, this.existingID);
     171  },
     172 
     173  takeOverAvailableData: function(identityData) {
     174    if (identityData.email)
     175      this.email = identityData.email;
     176    if (identityData.fullName)
     177      this.fullName = identityData.fullName;
     178    if (identityData.id.key)
     179      this.id.key = identityData.id.key;
     180    if (identityData.smtp.key)
     181      this.smtp.key = identityData.smtp.key;
     182    if (identityData.sideDescription)
     183      this.sideDescription = identityData.sideDescription;
     184    if (identityData.extras)
     185      this.extras.copy(identityData.extras);
    171186  },
    172187
     
    447462  _key: null,
    448463  _value: null,
     464  _accountkey: null,
    449465
    450466  set key(key) {
     
    455471    if (this._value == null) var dummy = this.value;
    456472    return this._key
     473  },
     474  get accountkey() {
     475    if (this._value == null) var dummy = this.value;
     476    return this._accountkey
    457477  },
    458478  get value() {
     
    470490          if (this._key == identity.key) {
    471491            this._value = identity.identityName;
     492            this._accountkey = account.key;
    472493            break;
    473494          }
    474495        }
    475496      }
    476       if (!this._value) this._key = null;
     497      if (!this._value) {
     498        this._key = null;
     499        this._accountkey = null;
     500      }
    477501    }
    478502    return this._value;
Note: See TracChangeset for help on using the changeset viewer.