From e0b1063df9d4cdacdc81e6be49638fccbdb2a26c Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sat, 2 May 2020 21:18:32 +0200 Subject: [PATCH] fix --- lib/ControlModel.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/ControlModel.ts b/lib/ControlModel.ts index a0fe793..72caa2c 100644 --- a/lib/ControlModel.ts +++ b/lib/ControlModel.ts @@ -8,8 +8,17 @@ export abstract class ControlModel { protected data: Record = {}; - public abstract get object(): Record; - public abstract set object(obj: Record); + public get object (): Record { + return this.data; + } + + public set object (obj: Record) { + this.data = obj; + } + + public constructor (obj: Record) { + this.object = obj; + } public get (key: string): string|number|boolean { return this.data[key];