if(!stroke){ return stroke; } if(typeof stroke == "string" || stroke instanceof dojo.Color){ stroke = {color: stroke}; } return dojox.gfx.makeParameters(dojox.gfx.defaultStroke, stroke);