triggerjs/trigger

[BUG] before 还未从 hook 中拿出就进行判断了

IronKinoko opened this issue · 1 comments

typeof hook === "object" && typeof before === "function" && before();

beforeafter 都未从 hook 中拿出来,这行结果永远都是 false

谢谢反馈,修正一下先