i18n API - {style: "currency"} redundant when currency is declared

Marcos Caceres ecmascript at marcosc.com
Tue Sep 4 09:26:43 PDT 2012


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




More information about the es-discuss mailing list