code: function(type, callback) {
          var list = this.__hooks[type] || [];
              list.push(callback);
  
          this.__hooks[type] = list;
      }
docs: Add a hook to a specific event type.
  
  @param {String} type
  @param {Function} callback