提交 dfd37367 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

add `super.on()` doc

上级 14e7b7aa
......@@ -553,6 +553,9 @@ export class Wechaty extends EventEmitter implements Sayable {
private addListenerFunction (event: WechatyEventName, listener: AnyFunction): void {
log.verbose('Wechaty', 'addListenerFunction(%s)', event)
/**
* We use `super.on()` at here to prevent loop
*/
super.on(event, (...args: any[]) => {
try {
listener.apply(this, args)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册