vine.js
/*
Creates the URL, pastes in attributes if needed
*/
Creates the URL, pastes in attributes if needed
Creates the URL pastes in attributes if needed
function createUrl(endpoint, url_params, params) {
  if (url_params.length == 0) return endpoint;
  var args = [];
  url_params.map(function(value, index, arr) {
    args.push(params[value]);
  });
  args.splice(0, 0, endpoint);
  return util.format.apply(util,args);
}
function createUrl ( endpoint , url_params , params ) { if ( url_params . length == 0 ) return endpoint ; var args = [ ] ; url_params . map ( function ( value , index , arr ) { args . push ( params [ value ] ) ; } ) ; args . splice ( 0 , 0 , endpoint ) ; return util . format . apply ( util , args ) ; }
Creates the URL, pastes in attributes if needed
Creates the URL pastes in attributes if needed