i18n API - {style: "currency"} redundant when currency is declared
Nebojša Ćirić
cira at google.com
Tue Sep 4 10:21:44 PDT 2012
Or we could throw TypeError in that case (style not matching).
2012/9/4 Nebojša Ćirić <cira at google.com>
> And {currency: 'USD', style:'percent'} would still produce
> {currency:'USD', style: 'currency'}, i.e. currency property dictates the
> style?
>
>
>
> 2012/9/4 Marcos Caceres <ecmascript at marcosc.com>
>
>> Hi,
>> If I define a "currency" option for NumberFormat, then {style:
>> "currency"} should automagically be set, no?
>>
>> I think is redundant to have to do the following:
>> {style: "currency", currency: "USD"}.
>>
>> I should just be able to say: {currency: "USD"} without having to declare
>> the "style".
>>
>>
>> --
>> Marcos Caceres
>> http://datadriven.com.au
>>
>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>
>
>
> --
> Nebojša Ćirić
>
--
Nebojša Ćirić
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120904/4556c107/attachment.html>
More information about the es-discuss
mailing list