Changes between Version 1 and Version 2 of Ticket #3759


Ignore:
Timestamp:
Jul 13, 2007, 6:27:54 PM (14 years ago)
Author:
Adam Peller
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3759 – Description

    v1 v2  
    33This code should be removed in favor of dojo.currency:
    44
    5 * dojox.regexp.currency
    6 * dojox.validate.isGermanCurrency
    7 * dojox.validate.isJapaneseCurrency
    8 * dojox.validate.us.isCurrency
    9 * dojox.validate.ca.isCurrency
    10 * dojox.validate.isCurrency
     5 * dojox.regexp.currency
     6 * dojox.validate.isGermanCurrency
     7 * dojox.validate.isJapaneseCurrency
     8 * dojox.validate.us.isCurrency
     9 * dojox.validate.ca.isCurrency
     10 * dojox.validate.isCurrency
    1111
    1212and these in favor of dojo.date which can provide localized regexps
    13 * dojox.regexp.time
     13 * dojox.regexp.time
    1414
    1515and these in favor of dojo.number, which also provides regexps on demand:
    16 * dojox.regexp.integer
    17 * dojox.regexp.realNumber
    18 * dojox.validate.isInteger
    19 * dojox.validate.isRealNumber
     16 * dojox.regexp.integer
     17 * dojox.regexp.realNumber
     18 * dojox.validate.isInteger
     19 * dojox.validate.isRealNumber
    2020
    2121and you should probably get rid of dojox.validate.isInRange which also bypasses i18n code and just let the user use boolean operators.  I guess if such an API is necessary for check, we should find a way to implement it with dojo.number.  We should never require the user to specify decimal separators as arguments or other parameters which require cultural info we already handle.  This should be locale driven, wherever possible.  That leaves country-specific stuff like zip codes, phone numbers, state lists, which are a little bit less interchangeable anyhow.