Use the members of the newly added KeyActionType object because static members were uninitialized. Handle PlayMacroAction in the KeyActionFactory.

This commit is contained in:
László Monda
2016-04-01 03:43:34 +02:00
parent fcd0d5b5b3
commit 1697d673f2
10 changed files with 45 additions and 41 deletions

View File

@@ -1,10 +1,9 @@
class NoneAction extends KeyAction implements Serializable<NoneAction> {
static keyActionTypeString = 'none';
static noneActionParam = 0;
fromJsObject(jsObject: any): NoneAction {
this.assertKeyActionType(jsObject, NoneAction.keyActionTypeString, 'NoneAction');
this.assertKeyActionType(jsObject, KeyActionType.NoneAction, 'NoneAction');
return this;
}
@@ -21,7 +20,7 @@ class NoneAction extends KeyAction implements Serializable<NoneAction> {
toJsObject(): any {
return {
keyActionType: NoneAction.keyActionTypeString
keyActionType: KeyActionId.NoneAction
};
}