committed by
József Farkas
parent
ac499d21f7
commit
768db3d757
@@ -50,7 +50,11 @@ export class Module extends Serializable<Module> {
|
||||
return {
|
||||
id: this.id,
|
||||
pointerRole: PointerRole[this.pointerRole],
|
||||
keyActions: this.keyActions.map(keyAction => keyAction.toJsObject())
|
||||
keyActions: this.keyActions.map(keyAction => {
|
||||
if (keyAction) {
|
||||
return keyAction.toJsObject();
|
||||
}
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -66,6 +66,10 @@ export class Helper {
|
||||
}
|
||||
|
||||
private static fromJSONObject(keyAction: any): KeyAction {
|
||||
if (!keyAction) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (keyAction.keyActionType) {
|
||||
case keyActionType.NoneAction:
|
||||
return new NoneAction().fromJsObject(keyAction);
|
||||
|
||||
Reference in New Issue
Block a user