Fix all linter errors.

This commit is contained in:
József Farkas
2016-08-24 20:06:56 +02:00
parent ec049fe7b3
commit 137f29b1a8
17 changed files with 42 additions and 35 deletions

View File

@@ -45,8 +45,8 @@ export class KeymapComponent implements OnInit, AfterViewInit {
}
ngOnInit() {
this.subParams = this.route.params.subscribe(params => {
let id: number = +params['id'];
this.subParams = this.route.params.subscribe((params: { id: string }) => {
let id: number = +params.id;
if (!isNaN(id)) {
this.keymapId = id;
@@ -125,7 +125,7 @@ export class KeymapComponent implements OnInit, AfterViewInit {
let animationNameTokens: string[] = event.animationName.split('-');
let animationFrom: string = animationNameTokens[1];
let animationTo: string = animationNameTokens[2];
if ((<HTMLElement> event.target).style.animationDirection === 'reverse') {
if ((<HTMLElement>event.target).style.animationDirection === 'reverse') {
animationFrom = animationNameTokens[2];
animationTo = animationNameTokens[1];
this.renderer.setElementStyle(event.target, 'animation-direction', undefined);