From a6c220b4990b36418c0b487155886a109ffe95ac Mon Sep 17 00:00:00 2001 From: AntoXa PRO Date: Tue, 19 Sep 2023 20:42:13 +0300 Subject: [PATCH] merge obj --- package.json | 2 +- src/forms/model.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c68881e..6576e14 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "axp-ts", - "version": "1.9.7", + "version": "1.9.8", "description": "TypeScript helper library", "author": "AntoXa PRO ", "homepage": "https://antoxahub.ru/antoxa/axp-ts", diff --git a/src/forms/model.ts b/src/forms/model.ts index 34ffa4b..11179a9 100644 --- a/src/forms/model.ts +++ b/src/forms/model.ts @@ -97,4 +97,8 @@ export class BaseFormModel implements IFormModel { setValidError(code: string, text: string) { this._errors[code] = code + ' - ' + text } + + mergeObj(obj: any) { + this.obj = Object.assign(this.obj, obj) + } }