examples/rest-api/src/modules/rest-api/create-api-actions.js
function onDeleteSuccess(model, params, result) {
  Flux.dispatch(actionTypes.API_DELETE_SUCCESS, {
    model: model,
    params: params,
    result: result,
  })
  return result
}
function onDeleteSuccess(model, params, result) {
  Flux.dispatch(actionTypes.API_DELETE_SUCCESS, {
    model: model,
    params: params,
    result: result,
  })
  return result
}
function onDeleteSuccess ( model , params , result ) { Flux . dispatch ( actionTypes . API_DELETE_SUCCESS , { model : model , params : params , result : result , } ) return result }
Handler for API delete success, dispatches flux action to remove the instance from the stores
@param {Model} model
@param {*} params used to call the `model.delete(params)`
@param {Object} result
@return {Object}
Handler for API delete success dispatches flux action to remove the instance from the stores