lib/abort.js
function abort(state)
{
  Object.keys(state.jobs).forEach(clean.bind(state));

  // reset leftover jobs
  state.jobs = {};
}
function abort(state)
{
  Object.keys(state.jobs).forEach(clean.bind(state));

  // reset leftover jobs
  state.jobs = {};
}
function abort ( state ) { Object . keys ( state . jobs ) . forEach ( clean . bind ( state ) ) ; // reset leftover jobs state . jobs = { } ; }
Aborts leftover active jobs

@param {object} state - current state object
Aborts leftover active jobs