Changeset 6f8488


Ignore:
Timestamp:
Oct 20, 2012, 4:20:17 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
e55f92
Parents:
48560d
Message:

added comparison debug

Location:
modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_identityData.js

    r48560d r6f8488  
    183183
    184184        this.comp.equals.fullName = (((this.fullName)?this.fullName.toLowerCase():null) == ((compareIdentityData.fullName)?compareIdentityData.fullName.toLowerCase():null));
    185         this.comp.equals.email = (((this.email)?this.email.toLowerCase():null) == ((compareIdentityData.email)?compareIdentityData.email.toLowerCase():null));
     185        if (!this.comp.equals.fullName) {
     186      Log.debug("fullName not equal ('" + ((this.fullName)?this.fullName.toLowerCase():null) + "' != '" + ((compareIdentityData.fullName)?compareIdentityData.fullName.toLowerCase():null) + "')");
     187    }
     188    this.comp.equals.email = (((this.email)?this.email.toLowerCase():null) == ((compareIdentityData.email)?compareIdentityData.email.toLowerCase():null));
     189    if (!this.comp.equals.email) {
     190      Log.debug("email not equal ('" + ((this.email)?this.email.toLowerCase():null) + "' != '" + ((compareIdentityData.email)?compareIdentityData.email.toLowerCase():null) + "')");
     191    }
    186192
    187193        this.comp.equals.smtp = this.smtp.equal(compareIdentityData.smtp);
    188 
    189 
    190194        this.comp.equals.id = this.id.equal(compareIdentityData.id);
    191195        this.comp.equals.extras = this.extras?this.extras.equal(compareIdentityData.extras):true;
     
    336340    equal : function(compareSmtpObj) {
    337341        if (this.key == NO_SMTP_TAG || compareSmtpObj.key == NO_SMTP_TAG) return true;
     342    if (this.keyNice != compareSmtpObj.keyNice) {
     343      Log.debug("smtp not equal ('" + this.keyNice + "' != '" + compareSmtpObj.keyNice + "')");
     344    }
    338345        return (this.keyNice == compareSmtpObj.keyNice);
    339346    },
     
    375382    equal : function(compareIdObj) {
    376383        if (!this.key || !compareIdObj.key) return true;
     384    if (this.key != compareIdObj.key) {
     385      Log.debug("id not equal ('" + this.key + "' != '" + compareIdObj.key + "')");
     386    }
    377387        return (this.key == compareIdObj.key);
    378388    }
  • modules/vI_identityDataExtras.js

    r48560d r6f8488  
    186186    this.lastCompareValue = compareIdentityDataExtrasObject.valueHtml;
    187187    this.lastCompareResult = (!this.value || !compareIdentityDataExtrasObject.value || this.value == compareIdentityDataExtrasObject.value);
     188    if (!this.lastCompareResult) {
     189      Log.debug("extras not equal "+ this.field + " ('" + this.value + "' != '" + compareIdentityDataExtrasObject.value + "')");
     190    }
    188191    return this.lastCompareResult;
    189192  },
Note: See TracChangeset for help on using the changeset viewer.