Mercurial > hg > ugly-duckling
comparison src/app/app.component.ts @ 353:02e7be2daf31
fix playhead regression. TypeScript doesn't seem to catch errors for non existent properties used as values for attribute directives.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 26 May 2017 13:10:18 +0100 |
parents | 524f5cd75737 |
children | bcb0a172eca3 |
comparison
equal
deleted
inserted
replaced
352:2453773eddd6 | 353:02e7be2daf31 |
---|---|
7 import {ExtractorOutputInfo} from './feature-extraction-menu/feature-extraction-menu.component'; | 7 import {ExtractorOutputInfo} from './feature-extraction-menu/feature-extraction-menu.component'; |
8 import {DomSanitizer} from '@angular/platform-browser'; | 8 import {DomSanitizer} from '@angular/platform-browser'; |
9 import {MdIconRegistry} from '@angular/material'; | 9 import {MdIconRegistry} from '@angular/material'; |
10 import {Subscription} from 'rxjs/Subscription'; | 10 import {Subscription} from 'rxjs/Subscription'; |
11 import { | 11 import { |
12 AnalysisItem, isRootAudioItem, | 12 AnalysisItem, |
13 isRootAudioItem, | |
13 Item, PendingAnalysisItem, PendingRootAudioItem, RootAudioItem | 14 Item, PendingAnalysisItem, PendingRootAudioItem, RootAudioItem |
14 } from './analysis-item/analysis-item.component'; | 15 } from './analysis-item/analysis-item.component'; |
15 import {OnSeekHandler} from './playhead/PlayHeadHelpers'; | 16 import {OnSeekHandler} from './playhead/PlayHeadHelpers'; |
16 | 17 |
17 class PersistentStack<T> { | 18 class PersistentStack<T> { |
87 this.analyses = new PersistentStack<AnalysisItem>(); | 88 this.analyses = new PersistentStack<AnalysisItem>(); |
88 this.canExtract = false; | 89 this.canExtract = false; |
89 this.nRecordings = 0; | 90 this.nRecordings = 0; |
90 this.countingId = 0; | 91 this.countingId = 0; |
91 this.onSeek = (time) => this.audioService.seekTo(time); | 92 this.onSeek = (time) => this.audioService.seekTo(time); |
93 this.rootAudioItem = {} as any; // TODO eugh | |
92 | 94 |
93 iconRegistry.addSvgIcon( | 95 iconRegistry.addSvgIcon( |
94 'duck', | 96 'duck', |
95 sanitizer.bypassSecurityTrustResourceUrl('assets/duck.svg') | 97 sanitizer.bypassSecurityTrustResourceUrl('assets/duck.svg') |
96 ); | 98 ); |