function removeFavourite(fave) {
  var faves = getFavourites();
  var faveIndex = faves.indexOf(fave);

  if (faveIndex < 0) {
    faves.splice(0, 1);
    return faves;
  }
  try {
    var removed = faves.splice(faveIndex, 1);
    faves = updateFavourite(faves);
  } catch (exception) {
    debug('Error removing from favourites: ' + exception);
  }
  return faves;
}
/**
 * @param fave to remove
 * @returns the list of favourites
 **/
@param fave to remove
@returns the list of favourites
@param fave to remove @returns the list of favourites
function removeFavourite(fave) {
  var faves = getFavourites();
  var faveIndex = faves.indexOf(fave);
  if (faveIndex < 0) {
    faves.splice(0, 1);
    return faves;
  }
  try {
    var removed = faves.splice(faveIndex, 1);
    faves = updateFavourite(faves);
  } catch (exception) {
    debug('Error removing from favourites: ' + exception);
  }
  return faves;
}
function removeFavourite ( fave ) { var faves = getFavourites ( ) ; var faveIndex = faves . indexOf ( fave ) ; if ( faveIndex < 0 ) { faves . splice ( 0 , 1 ) ; return faves ; } try { var removed = faves . splice ( faveIndex , 1 ) ; faves = updateFavourite ( faves ) ; } catch ( exception ) { debug ( 'Error removing from favourites: ' + exception ) ; } return faves ; }
@param fave to remove
 @returns the list of favourites
@param fave to remove @returns the list of favourites