Changeset fe1b32


Ignore:
Timestamp:
Apr 9, 2008, 7:18:14 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
44b6ff
Parents:
189e89
Message:

changed combinedName to use helper function

File:
1 edited

Legend:

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

    r189e89 rfe1b32  
    99    combineNames : function (fullName, email) {
    1010        if (fullName && fullName.replace(/^\s+|\s+$/g,"")) return fullName.replace(/^\s+|\s+$/g,"") + " <" + email.replace(/^\s+|\s+$/g,"") + ">"
    11         else return email.replace(/^\s+|\s+$/g,"")
     11        else return email?email.replace(/^\s+|\s+$/g,""):""
    1212    },
    1313
     
    5353        return { name: name,
    5454             email: email,
    55              combinedName: name + " <" + email + ">"}
     55             combinedName: vI_helper.combineNames(name, email)}
    5656    }
    5757}
Note: See TracChangeset for help on using the changeset viewer.