ampersand-io-collection.js
function(err, model, response, options){
  if (options.cb){
    options.cb(err, model, response);
  }
  if (err){
    model.trigger('error', err, model, options);
  }
}
function(err, model, response, options){
  if (options.cb){
    options.cb(err, model, response);
  }
  if (err){
    model.trigger('error', err, model, options);
  }
}
function ( err , model , response , options ) { if ( options . cb ) { options . cb ( err , model , response ) ; } if ( err ) { model . trigger ( 'error' , err , model , options ) ; } }
Aux func used to trigger errors if they exist and use the optional callback function if given
Aux func used to trigger errors if they exist and use the optional callback function if given