Changeset 15162

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

gfx: allow to use a dojo.Color as a shortcut for a stroke. Fixes #7522. !strict

Location:
dojox/trunk/gfx
Files:
4 modified

Legend:

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

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

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

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

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