mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
$.proxy is deprecated
$.trim is deprecated
This commit is contained in:
parent
ae1b7610fd
commit
bbd9f49dcd
39 changed files with 153 additions and 173 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { ContactPropertyType } from 'Common/Enums';
|
||||
import { trim, isNonEmptyArray, isNormal, pInt, pString } from 'Common/Utils';
|
||||
import { isNonEmptyArray, isNormal, pInt, pString } from 'Common/Utils';
|
||||
import { emptyContactPic } from 'Common/Links';
|
||||
|
||||
import { AbstractModel } from 'Knoin/AbstractModel';
|
||||
|
|
@ -32,9 +32,9 @@ class ContactModel extends AbstractModel {
|
|||
this.properties.forEach(property => {
|
||||
if (property) {
|
||||
if (ContactPropertyType.FirstName === property[0]) {
|
||||
name = trim(property[1] + ' ' + name);
|
||||
name = (property[1] + ' ' + name).trim();
|
||||
} else if (ContactPropertyType.LastName === property[0]) {
|
||||
name = trim(name + ' ' + property[1]);
|
||||
name = (name + ' ' + property[1]).trim();
|
||||
} else if (!email && ContactPropertyType.Email === property[0]) {
|
||||
email = property[1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue