rem: var m = color.toLowerCase().match(/^(rgba?)\(([\s\.,0-9]+)\)/); if(m){ var c = m[2].split(/\s*,\s*/); if((m[1] == "rgb" && c.length == 3) || (m[1] == "rgba" && c.length == 4)){ return dojo.colorFromArray(c, obj); } } return null; 
add: var m = color.toLowerCase().match(/^rgba?\(([\s\.,0-9]+)\)/); return m && dojo.colorFromArray(m[1].split(/\s*,\s*/), obj); 
context: dojo.colorFromRgb = function(/*String*/ color, /*dojo.Color?*/ obj){	// summary: get rgb(a) array from css-style color declarations	var m = color.toLowerCase().match(/^(rgba?)\(([\s\.,0-9]+)\)/);	if(m){		var c = m[2].split(/\s*,\s*/);		if((m[1] == "rgb" && c.length == 3) || (m[1] == "rgba" && c.length == 4)){			return dojo.colorFromArray(c, obj);	// dojo.Color		}	}	return null;	// dojo.Color};
meta: 4497	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/4497/3d321e409b1157d94b682d6bfb6236d9d773aecf/Color.js/buggy/_base/Color.js