Refactor: Replace NoneAction with null in JSON representation

This commit is contained in:
Farkas József
2016-11-26 20:54:11 +01:00
parent c42cff71ae
commit 6bbcacfbe6
8 changed files with 290 additions and 812 deletions

View File

@@ -1,6 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { NoneAction } from '../../../../config-serializer/config-items/key-action';
import { Tab } from '../tab';
@Component({
@@ -21,8 +20,8 @@ export class NoneTabComponent implements OnInit, Tab {
return false;
}
toKeyAction(): NoneAction {
return new NoneAction();
toKeyAction(): undefined {
return undefined;
}
}

View File

@@ -28,7 +28,6 @@ import {
LayerName,
MouseAction,
MouseActionParam,
NoneAction,
PlayMacroAction,
SwitchKeymapAction,
SwitchLayerAction
@@ -165,7 +164,7 @@ export class SvgKeyboardWrapComponent implements OnChanges {
showTooltip(keyAction: KeyAction, event: MouseEvent): void {
if (keyAction instanceof NoneAction || keyAction === undefined) {
if (keyAction === undefined) {
return;
}