fix: prevent double updateUI, move imports to top, label for attributes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { initEingabe } from './eingabe.js';
|
||||
|
||||
// Globaler State — aktive Farbe als { h, s, l } (HSL, 0-360, 0-100, 0-100)
|
||||
// state.color is read-only from outside — always use setColor() to update,
|
||||
// so that the colorChanged event is dispatched to all listening modules.
|
||||
@@ -22,8 +24,6 @@ document.querySelectorAll('.tab-btn').forEach(btn => {
|
||||
});
|
||||
});
|
||||
|
||||
import { initEingabe } from './eingabe.js';
|
||||
|
||||
function addFavorit(hsl) { console.log('addFavorit', hsl); }
|
||||
function addColorToSchema(hsl) { console.log('addColorToSchema', hsl); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user