From 315156aac570f1223e01f91bee4e99e88bb8c35d Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 30 Apr 2019 10:17:29 +0200 Subject: [PATCH] fix(core): update --- ts/smartstate.classes.smartstate.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ts/smartstate.classes.smartstate.ts b/ts/smartstate.classes.smartstate.ts index c4f33dd..8c9c0bd 100644 --- a/ts/smartstate.classes.smartstate.ts +++ b/ts/smartstate.classes.smartstate.ts @@ -5,7 +5,7 @@ import { StatePart } from './smartstate.classes.statepart'; * Smartstate takes care of providing state */ export class Smartstate { - statePartMap: { [key: string]: StatePart } = {}; + public statePartMap: { [key: string]: StatePart } = {}; constructor() {} @@ -30,6 +30,11 @@ export class Smartstate { } } + /** + * creates a statepart + * @param statePartName + * @param initialPayloadArg + */ private createStatePart( statePartName: StatePartNameType, initialPayloadArg: PayloadType