Changeset c0e9d6


Ignore:
Timestamp:
Mar 4, 2010, 11:46:45 AM (11 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
c99b14
Parents:
24afa6
Message:

ignore case while comparing identityData

File:
1 edited

Legend:

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

    r24afa6 rc0e9d6  
    125125        this.comp.compareID = compareIdentityData;
    126126
    127         this.comp.equals.fullName = (this.fullName == compareIdentityData.fullName)
    128         this.comp.equals.email = (this.email == compareIdentityData.email)
     127        this.comp.equals.fullName = (((this.fullName)?this.fullName.toLowerCase():null) == ((compareIdentityData.fullName)?compareIdentityData.fullName.toLowerCase():null));
     128        this.comp.equals.email = (((this.email)?this.email.toLowerCase():null) == ((compareIdentityData.email)?compareIdentityData.email.toLowerCase():null));
    129129
    130130        this.comp.equals.smtp = this.smtp.equal(compareIdentityData.smtp);
     
    133133        this.comp.equals.id = this.id.equal(compareIdentityData.id);
    134134        this.comp.equals.extras = this.extras.equal(compareIdentityData.extras);
    135 //      vI_notificationBar.dump("## vI_identityData: smtp:'" + this.comp.equals.smtp + "' id:'" + this.comp.equals.id + "'\n");
    136         return (this.comp.equals.fullName && this.comp.equals.email && this.comp.equals.smtp && this.comp.equals.id && this.comp.equals.extras)
     135       
     136        return (this.comp.equals.fullName && this.comp.equals.email && this.comp.equals.smtp && this.comp.equals.id && this.comp.equals.extras);
    137137    },
    138138
Note: See TracChangeset for help on using the changeset viewer.