From 9f44aff370312af054c1d5408ae930e3763520c8 Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Fri, 23 Nov 2012 20:14:34 -0800 Subject: [PATCH] Renamed to_pretty to to_human in accordance with Currency.to_human. --- src/js/amount.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/amount.js b/src/js/amount.js index d6ddf9f8b..44f803a09 100644 --- a/src/js/amount.js +++ b/src/js/amount.js @@ -453,12 +453,12 @@ Amount.prototype.to_text = function(allow_nan) { * Format only value in a human-readable format. * * @example - * var pretty = amount.to_pretty({precision: 2}); + * var pretty = amount.to_human({precision: 2}); * * @param opts Options for formatter. * @param opts.precision {Number} Max. number of digits after decimal point. */ -Amount.prototype.to_pretty = function (opts) +Amount.prototype.to_human = function (opts) { opts = opts || {};