add more test, convert CodePad to type scipt

This commit is contained in:
Xuan Sang LE
2020-06-03 23:43:08 +02:00
parent af496b0aac
commit 6e95994892
36 changed files with 2818 additions and 1471 deletions

View File

@ -157,7 +157,7 @@ namespace OS {
trigger(evtName: string, data: any): void {
const trig = (name: string, d: any) => {
const names = [name, "*"];
for (let evt of Array.from(names)) {
for (let evt of names) {
if (!this.observable[evt]) {
continue;
}
@ -272,7 +272,7 @@ namespace OS {
) {
return;
}
for (let i of Array.from(announcer.listeners[app.pid])) {
for (let i of announcer.listeners[app.pid]) {
announcer.observable.off(i.e, i.f);
}
delete announcer.listeners[app.pid];