Changeset 21951 in legacy


Ignore:
Timestamp:
Apr 26, 2010 2:35:04 AM (7 years ago)
Author:
peller
Message:

Redo r21792 to avoid exception when parts[1] is null and options.places is unspecified. Refs #10701, Refs #10582

File:
1 edited

Legend:

Unmodified
Added
Removed
  • dojo/trunk/number.js

    r21867 r21951  
    333333                        // special condition for percent (factor != 1)
    334334                        // allow decimal places even if not specified in pattern
    335                         if((parts.length == 1 && factor == 1) || places === 0){
     335                        if(parts.length == 1 && factor != 1){
     336                            parts[1] = "###";
     337                        }
     338                        if(parts.length == 1 || places === 0){
    336339                                flags.fractional = false;
    337340                        }else{
Note: See TracChangeset for help on using the changeset viewer.