From d85da0198c784bacf871531741b9dd20528fcaed Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Sun, 31 May 2026 09:19:11 +0300 Subject: [PATCH] =?UTF-8?q?fix(flashcards):=20COLORS=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D1=89=D1=91=D0=BD=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=20IIFE=20=E2=80=94=20=D1=83=D1=81=D1=82=D1=80=D0=B0?= =?UTF-8?q?=D0=BD=D1=91=D0=BD=20ReferenceError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit const COLORS и let _deckColor объявлены в temporal dead zone во время вызова init() из IIFE (const не hoisting, function — да). Перемещены перед IIFE: теперь COLORS инициализирован до первого вызова buildColorPicker(). Co-Authored-By: Claude Sonnet 4.6 --- frontend/flashcards.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/flashcards.html b/frontend/flashcards.html index 8b4a916..d7b895a 100644 --- a/frontend/flashcards.html +++ b/frontend/flashcards.html @@ -371,6 +371,15 @@