Mercurial > hg > ugly-duckling
diff src/app/analysis-item/analysis-item.component.ts @ 399:6fe8ef9687de
Who am I kidding? Graduate the bodge.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 02 Jun 2017 17:24:33 +0100 |
parents | 3eab26a629e1 |
children | f2d43724a578 |
line wrap: on
line diff
--- a/src/app/analysis-item/analysis-item.component.ts Fri Jun 02 16:51:36 2017 +0100 +++ b/src/app/analysis-item/analysis-item.component.ts Fri Jun 02 17:24:33 2017 +0100 @@ -92,12 +92,12 @@ private hasProgressOnInit = false; - // TODO move - private DOES_NOT_BELONG_HERE: TimePixelMapper; + // TODO move / re-think - naivePagingMapper feels like a big ol' bodge + private timeToPixel: TimePixelMapper; ngOnInit(): void { this.hasProgressOnInit = this.item.progress != null; - this.DOES_NOT_BELONG_HERE = naivePagingMapper(this.timeline); + this.timeToPixel = naivePagingMapper(this.timeline); } isLoading(): boolean {