Retain callHook args as individual arguments
This commit is contained in:
parent
e7d662f2f4
commit
800504f5ed
|
@ -70,7 +70,7 @@ module.exports.pluginHandler = function (parent) {
|
|||
obj.callHook = function(hookName, ...args) {
|
||||
for (const p of Object.keys(obj)) {
|
||||
if (typeof obj[p][hookName] == 'function') {
|
||||
obj[p][hookName](args);
|
||||
obj[p][hookName].apply(this, args);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue