Optimize some components
All checks were successful
continuous-integration/drone/push Build is passing

- Use binding of this over `document.querySelector` calls
- Use else if over a chained else and if condition
This commit is contained in:
2020-03-29 19:49:01 +02:00
parent 02974aa00c
commit 59f287af2b
3 changed files with 12 additions and 12 deletions

View File

@@ -6,12 +6,14 @@
export let className = null
// Variables
let counter
const numbers = [...Array(10).keys()]
// Reactive variables depending on currentIndex
$: actualIndex = currentIndex + 1
$: amount = String(actualIndex).length
$: index = (actualIndex < 10) ? String(actualIndex).padStart(2, '0') : String(actualIndex)
$: digits = index.split('')
let counter
const numbers = [...Array(10).keys()]
/*