lib/dispatcher.js
function (type, data) {
    if (!_.isString(type)) {
      console.warn('Action types are required when calling dispatcher.dispatch()');
      return;
    }

    this.dispatcher.dispatch({
      type: type,
      data: data
    });
  }
function (type, data) {
    if (!_.isString(type)) {
      console.warn('Action types are required when calling dispatcher.dispatch()');
      return;
    }

    this.dispatcher.dispatch({
      type: type,
      data: data
    });
  }
function ( type , data ) { if ( ! _ . isString ( type ) ) { console . warn ( 'Action types are required when calling dispatcher.dispatch()' ) ; return ; } this . dispatcher . dispatch ( { type : type , data : data } ) ; }
Dispatch an action by name

@param {string} type - Name of the action
@param {Object|string|number|boolean} data - The payload of the action
Dispatch an action by name