wuwangdong 4 years ago
parent
commit
a116d6dc6f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      assets/script/mk/system/UISystem.ts

+ 2 - 2
assets/script/mk/system/UISystem.ts

@@ -18,7 +18,7 @@ export default class UISystem extends cc.Component {
     /** 上一个打开的界面名称 */
     private lastOpenPanelName: string = "";
 
-    private registerCallBack: Map<cc.Node, Map<string, Function>> = new Map<cc.Node, Map<string,Function>>();
+    private registerCallBack: Map<any, Map<string, Function>> = new Map<any, Map<string,Function>>();
         
     onLoad() {
         mk.ui = this;
@@ -197,7 +197,7 @@ export default class UISystem extends cc.Component {
     {
         this.registerCallBack.forEach((value, key)=>{
             value.forEach((callBack, k)=>{
-                if(k == name)
+                if(k === name)
                 {
                     callBack && callBack();
                 }