examples/rest-api/src/modules/rest-api/create-api-actions.js
function onDeleteFail(model, params, reason) {
  Flux.dispatch(actionTypes.API_DELETE_FAIL, {
    model: model,
    params: params,
    reason: reason,
  })
  return Promise.reject(reason)
}
function onDeleteFail(model, params, reason) {
  Flux.dispatch(actionTypes.API_DELETE_FAIL, {
    model: model,
    params: params,
    reason: reason,
  })
  return Promise.reject(reason)
}
function onDeleteFail ( model , params , reason ) { Flux . dispatch ( actionTypes . API_DELETE_FAIL , { model : model , params : params , reason : reason , } ) return Promise . reject ( reason ) }
Handler for API delete fail
@param {Model} model
@param {*} params used to call the `model.delete(params)`
@param {Object} result
@return {Object}
Handler for API delete fail