123456789101112131415161718 |
- 'use strict'
- let HookList = {};
- module.exports = {
- Event:{
- Router:1
- },
- registerHook:function(hookName,callback){
- },
- triggerHook:function(hookName,callback){
- if(!HookList.hasOwnProperty(hookName) || HookList[hookName].length==0){
- callback();
- return;
- }
-
- }
- }
|