1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-01 12:22:15 +02:00

🔤 scopes

This commit is contained in:
2025-03-06 09:41:29 +01:00
parent 17e40fdd9c
commit 59efa84494
4 changed files with 10 additions and 60 deletions

View File

@ -21,9 +21,7 @@ function Counter() {
setTimeout(()=> {
// ok, BUT consider extract to separate function
// see section below for more info
scope.push();
const ok= S(0);
scope.pop();
S.on(ok, console.log);
setInterval(()=> ok.set(ok.get() + 1), 100);
}, 100);