index.js
function _hook(slf, name, handlerInfo, params) {
  if (!slf.__hooks[name]) return;

  slf.__hooks[name].forEach(function (hook) {
    hook(handlerInfo, params);
  });
}
function _hook(slf, name, handlerInfo, params) {
  if (!slf.__hooks[name]) return;

  slf.__hooks[name].forEach(function (hook) {
    hook(handlerInfo, params);
  });
}
function _hook ( slf , name , handlerInfo , params ) { if ( ! slf . __hooks [ name ] ) return ; slf . __hooks [ name ] . forEach ( function ( hook ) { hook ( handlerInfo , params ) ; } ) ; }
Helper to run hooks
Helper to run hooks