1
0
mirror of https://github.com/jaandrle/deka-dom-el synced 2025-07-29 07:00:16 +02:00

Dev bugs@v0.7.6 (#12)

* Update observables-lib.js

* `collectChildren`

* Update todosComponent.js

* 🚀 filter for `collectChildren`
This commit is contained in:
2024-01-07 12:33:56 +01:00
committed by GitHub
parent e88a495525
commit d2ddaaec6f
9 changed files with 195 additions and 171 deletions

View File

@@ -249,7 +249,7 @@ function removeObservableListener(o, listener, clear_when_empty){
if(!s) return;
const out= s.listeners.delete(listener);
if(clear_when_empty && !s.listeners.size){
o.clear(o);
observable.clear(o);
if(!deps.has(s)) return out;
const c= deps.get(s);
if(!deps.has(c)) return out;