From 08758fd9cbbd35744e035eda3edff28fda882dec Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Mon, 13 Jun 2022 21:07:23 -0700 Subject: [PATCH] Micro fixes. --- src/components/media-carousel.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/media-carousel.ts b/src/components/media-carousel.ts index f4a7f36d..aba35b83 100644 --- a/src/components/media-carousel.ts +++ b/src/components/media-carousel.ts @@ -26,7 +26,6 @@ export class FrigateCardMediaCarousel extends FrigateCardCarousel { protected _previousControlRef: Ref = createRef(); protected _titleControlRef: Ref = createRef(); protected _titleTimerID: number | null = null; - protected _needReInit = false; // This carousel may be resized by Lovelace resizes, window resizes, // fullscreen, etc. Always call the adaptive height handler when the size @@ -126,7 +125,7 @@ export class FrigateCardMediaCarousel extends FrigateCardCarousel { * https://github.com/dermotduffy/frigate-hass-card/issues/651 */ - const reinit = (): void => { + const reInit = (): void => { this._carousel?.reInit(); }; @@ -135,9 +134,9 @@ export class FrigateCardMediaCarousel extends FrigateCardCarousel { // it, but only give it 400ms before running as it may otherwise be // noticeable to the user. if (window.requestIdleCallback !== undefined) { - window.requestIdleCallback(reinit, { timeout: 400 }); + window.requestIdleCallback(reInit, { timeout: 400 }); } else { - reinit(); + reInit(); } } }