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];