rem: if (ColorType == "Text") 
add: if (TextType) 
context: function onOK(){  var color;  if (LastPickedIsDefault)    color = LastPickedColor;  else    color = dialog.ColorInput.value;  color = color.trimString().toLowerCase();  // TODO: Validate the color string!dump("ColorPicker onOK: color = "+color+"|\n");  // Set return values and save in persistent color attributes  if (ColorType == "Text")  {    window.arguments[1].TextColor = color;    if (color.length > 0)      dialog.LastPickedColor.setAttribute("LastTextColor", color);  }  else  {    window.arguments[1].BackgroundColor = color;    if (color.length > 0)      dialog.LastPickedColor.setAttribute("LastBackgroundColor", color);    // If table or cell requested, tell caller which element to set on    if (TableOrCell && dialog.TableRadio.checked)      window.arguments[1].Type = "Table";  }  SaveWindowLocation();  return true; // do close the window}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/49bc32c783f8e8fbf15d440f1587990451b05b6f/EdColorPicker.js/buggy/editor/ui/dialogs/content/EdColorPicker.js