Currently scripts like the following are shipped to the client unminified.
fundraisingAmounts.pick = function(source, currency, country) { /* * Select the correct amount or array of amounts from object in "source" * In future may extend to allow a language parameter too * * @param {object} source - the amounts object e.g. fundraisingAmounts.asks, fundraisingAmounts.averages * @param {string} currency - ISO code of currency * @param {string} country - ISO code of country (optional) * @return {array/number} - depending on source */ if ( source[currency]["default"] ) { // we need to go deeper if ( source[currency][country] !== undefined ) { return source[currency][country]; } else { return source[currency]["default"]; } } else { return source[currency]; } }; function convertAsk(amount, currency, country) { /* * Given an amount in USD, find an "equivalent" local ask amount for the given currency and country * @TODO: namespace this * * @param {number} amount - USD amount * @param {string} currency - ISO code of currency * @param {string} country - ISO code of country * @return {number} - local amount */ var usdbase = [3, 5, 10, 20, 30, 50, 100]; var usdamount = parseInt(amount, 10); if(isNaN(usdamount)){ return 0; } ...