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',