js apply只接受2个入参

Signed-off-by: jsjzju <jinsenjun@huawei.com>
Change-Id: I6c88b6425d6d9f03af8185d6c14d7b61dd7e5800
This commit is contained in:
jsjzju
2023-09-09 17:24:53 +08:00
parent e630687c66
commit b65d556155
2 changed files with 2 additions and 2 deletions
@@ -73,7 +73,7 @@ class EventHub {
const cloneArray = [...this.eventMap[event]];
const len = cloneArray.length;
for (let i = 0; i < len; ++i) {
cloneArray[i].apply(this, ...args);
cloneArray[i].apply(this, args);
}
}
}
+1 -1
View File
@@ -58,7 +58,7 @@ class EventHub {
const cloneArray = [...this.eventMap[event]];
const len = cloneArray.length;
for (let i = 0; i < len; ++i) {
cloneArray[i].apply(this, ...args);
cloneArray[i].apply(this, args);
}
}
}