private listeners = new Map();
private bindListener = (listener: (...args: any[]) => void, addon: AddonInfo): (...args: any[]) => void => {
return (...args) => {
- listener.call(addon.module, args);
+ listener.call(addon.module, ...args);
}
}
on = (eventName: string, listener: (...args: any[]) => void, addon: AddonInfo): void => {
}
}
emit = (eventName: string, ...args: any[]): void => {
- this.emitter.emit(eventName, args);
+ this.emitter.emit(eventName, ...args);
}
}
}
emit(eventName: string, ...args: any[]) {
- this.eventManager.emit(eventName, args);
+ this.eventManager.emit(eventName, ...args);
}
checkAddon(appPath: string) {