This commit is contained in:
Dany LE 2021-11-24 23:21:23 +01:00
parent 3c67b1c134
commit 149566ec5d
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -263,7 +263,10 @@ namespace OS {
} }
this.observable[evt].one.forEach((f) => f(d)); this.observable[evt].one.forEach((f) => f(d));
this.observable[evt].one = new Set(); this.observable[evt].one = new Set();
this.observable[evt].many.forEach((f) => f(d)); this.observable[evt].many.forEach((f) => {
console.log(f, d);
f(d)
});
} }
}; };
if (evtName === "*") { if (evtName === "*") {