From a8efd43d256e67b954a38eb20438714815442f29 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 3 Nov 2010 09:40:26 -0700 Subject: doc parser should recognize the 'defaults' syntax for params --- src/filters.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/filters.js b/src/filters.js index 0cff6d56..206da240 100644 --- a/src/filters.js +++ b/src/filters.js @@ -43,7 +43,7 @@ angularFilter.currency = function(amount){ * If the input is not a number empty string is returned. * * @param {(number|string)} number Number to format. - * @param {(number|string)=2} fractionSize Number of decimal places to round the number to. Default 2. + * @param {(number|string)=} [fractionSize=2] Number of decimal places to round the number to. Default 2. * @returns {string} Number rounded to decimalPlaces and places a “,” after each third digit. * * @example @@ -287,7 +287,7 @@ angularFilter.uppercase = uppercase; * filtered and you can't get the content through the sanitizer. * * @param {string} html Html input. - * @param {string='safe'} option If 'unsafe' then do not sanitize the HTML input. + * @param {string=} option If 'unsafe' then do not sanitize the HTML input. * @returns {string} Sanitized or raw html. * * @example -- cgit v1.2.3