(#60) Core emitter generic optimization

This commit is contained in:
2022-01-22 17:49:03 +08:00
parent c385965655
commit e97514a67f
5 changed files with 27 additions and 27 deletions
+2 -2
View File
@@ -106,8 +106,8 @@ class Mask<M extends Manager> extends Modular<M, {}, IMaskEvent> {
* 处理蒙版点击事件
*/
private handleClickMask() {
if (this.autoCloseOnClick) this.emit("hide", void 0);
this.emit("click", void 0);
if (this.autoCloseOnClick) this.emit("hide");
this.emit("click");
}
}