mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
js apply只接受2个入参
Signed-off-by: jsjzju <jinsenjun@huawei.com> Change-Id: I6c88b6425d6d9f03af8185d6c14d7b61dd7e5800
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user