code: function convert(currency) {
      // Store the current currency.
      var oldCurrency = Currency.currentCurrency;
  
      // Call convertAll with all possible formats. Currency.currentCurrency will be set as a side effect.
      Currency.convertAll(Currency.currentCurrency, currency, '[data-convert="money"]', 'money_format');
      Currency.convertAll(Currency.currentCurrency, currency, '[data-convert="money_with_currency"]', 'money_with_currency_format');
      Currency.convertAll(Currency.currentCurrency, currency, '[data-convert="money_without_currency"]', 'money_without_currency_format');
  
      // Save the chosen currency in a cookie.
      Currency.cookie.write(currency);
  
      // If there was a change in currency, fire the currency changed event.
      if(oldCurrency != currency) {
        $(document).trigger('currency.changed', [oldCurrency, currency]);
      }
    }
docs: Convert all elements on the page marked up with data-convert attributes to the given currency.
  
  @param currency