Changeset 15161

Show
Ignore:
Timestamp:
09/07/08 17:18:28 (3 months ago)
Author:
elazutkin
Message:

gfx: allow to use an array as a shortcut for a stroke, the array will be
treated as a color definition. Refs #7522. !strict

Location:
dojox/trunk/gfx
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/gfx/shape.js

    r15155 r15161  
    194194                } 
    195195                // normalize the stroke 
    196                 if(typeof stroke == "string"){ 
     196                if(typeof stroke == "string" || dojo.isArray(stroke)){ 
    197197                        stroke = {color: stroke}; 
    198198                } 
  • dojox/trunk/gfx/silverlight.js

    r15155 r15161  
    132132                } 
    133133                // normalize the stroke 
    134                 if(typeof stroke == "string"){ 
     134                if(typeof stroke == "string" || dojo.isArray(stroke)){ 
    135135                        stroke = {color: stroke}; 
    136136                } 
  • dojox/trunk/gfx/svg.js

    r15155 r15161  
    107107                } 
    108108                // normalize the stroke 
    109                 if(typeof stroke == "string"){ 
     109                if(typeof stroke == "string" || dojo.isArray(stroke)){ 
    110110                        stroke = {color: stroke}; 
    111111                } 
  • dojox/trunk/gfx/vml.js

    r15160 r15161  
    159159                } 
    160160                // normalize the stroke 
    161                 if(typeof stroke == "string"){ 
     161                if(typeof stroke == "string" || dojo.isArray(stroke)){ 
    162162                        stroke = {color: stroke}; 
    163163                }