Changeset 12956

Show
Ignore:
Timestamp:
03/06/08 20:26:31 (10 months ago)
Author:
peller
Message:

Fix currency constraints docs. Refs #6075 !strict

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojo/trunk/currency.js

    r12954 r12956  
    5555// description: 
    5656//              Returns regular expression with positive and negative match, group and decimal separators 
    57 // 
    58 // options: object {pattern: String, locale: String, strict: Boolean, places: mixed} 
    59 //              currency- the ISO4217 currency code, a three letter sequence like "USD" 
    60 //                      See http://en.wikipedia.org/wiki/ISO_4217 
    61 //              symbol- override currency symbol. Normally, will be looked up in table of supported currencies, and ISO currency code will 
    62 //                      be used if not found.  See dojo.i18n.cldr.nls->currency.js 
    63 //              pattern- override pattern with this string 
    64 //              locale- override the locale used to determine formatting rules 
    65 //              strict- strict parsing, false by default 
    66 //              places- number of decimal places to accept.  Default is defined by currency. 
     57//              Note: the options.places default, the number of decimal places to accept, is defined by the currency type. 
    6758        return dojo.number.regexp(dojo.currency._mixInDefaults(options)); // String 
    6859} 
     
    8071        //              where places are implied by pattern or explicit 'places' parameter, whether to include the fractional portion. 
    8172        //              By default for currencies, it the fractional portion is optional. 
    82  
    83         this.type = type; 
     73        type: "", 
     74        symbol: "", 
     75        places: "", 
     76        fractional: "" 
    8477}); 
    8578=====*/