mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
15 lines
427 B
JavaScript
15 lines
427 B
JavaScript
|
/* RainLoop Webmail (c) RainLoop Team | Licensed under CC BY-NC-SA 3.0 */
|
||
|
|
||
|
/**
|
||
|
* @param {number=} iType = Enums.ContactPropertyType.Unknown
|
||
|
* @param {string=} sValue = ''
|
||
|
*
|
||
|
* @constructor
|
||
|
*/
|
||
|
function ContactPropertyModel(iType, sValue)
|
||
|
{
|
||
|
this.type = ko.observable(Utils.isUnd(iType) ? Enums.ContactPropertyType.Unknown : iType);
|
||
|
this.focused = ko.observable(false);
|
||
|
this.value = ko.observable(Utils.pString(sValue));
|
||
|
}
|