code: function (type, data) {
      if (!_.isString(type)) {
        console.warn('Action types are required when calling dispatcher.dispatch()');
        return;
      }
  
      this.dispatcher.dispatch({
        type: type,
        data: data
      });
    }
docs: Dispatch an action by name
  
  @param {string} type - Name of the action
  @param {Object|string|number|boolean} data - The payload of the action