From 9eca20a2a358d31517a0d5bac33e307393e80ea3 Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Wed, 17 Mar 2021 09:33:04 -0500 Subject: [PATCH] more improvments --- src/components/inputItem/controllers/textCtrl.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/inputItem/controllers/textCtrl.ts b/src/components/inputItem/controllers/textCtrl.ts index 0955096..115e9c5 100644 --- a/src/components/inputItem/controllers/textCtrl.ts +++ b/src/components/inputItem/controllers/textCtrl.ts @@ -15,8 +15,8 @@ let side = "right"; // Side of parent we are on. let visible = false; // Whether textInput is visible. function showTextInput () { - let t1 = (side === "right") ? 50 : -70; - let t2 = (side === "right") ? 110 : -130; + const t1 = (side === "right") ? 50 : -70; + const t2 = (side === "right") ? 110 : -130; anime({ targets: '#textInput', @@ -31,7 +31,7 @@ function showTextInput () { } function hideTextInput() { - let t = (side === "right") ? 50 : -80; + const t = (side === "right") ? 50 : -80; anime({ targets: '#textInput', @@ -46,7 +46,7 @@ function hideTextInput() { } function switchSide(currentSide: string) { - let t = (currentSide === "right") ? -130 : 110; + const t = (currentSide === "right") ? -130 : 110; anime({ targets: '#textInput', -- 2.43.0