rem: if (backgroundImage.length) 
add: if (backgroundImage) 
context: function InitDialog(){  // Get image from document  backgroundImage = globalElement.getAttribute(backgroundStr);  if (backgroundImage.length)  {    gDialog.BackgroundImageInput.value = backgroundImage;    gDialog.ColorPreview.setAttribute(styleStr, backImageStyle+backgroundImage+");");  }  SetRelativeCheckbox();  customTextColor        = globalElement.getAttribute(textStr);  customLinkColor        = globalElement.getAttribute(linkStr);  customActiveColor      = globalElement.getAttribute(alinkStr);  customVisitedColor     = globalElement.getAttribute(vlinkStr);  customBackgroundColor  = globalElement.getAttribute(bgcolorStr);  var haveCustomColor =         customTextColor       ||        customLinkColor       ||        customVisitedColor    ||        customActiveColor     ||        customBackgroundColor;  // Set default color explicitly for any that are missing  // PROBLEM: We are using "windowtext" and "window" for the Windows OS  //   default color values. This works with CSS in preview window,  //   but we should NOT use these as values for HTML attributes!  if (!customTextColor) customTextColor = defaultTextColor;  if (!customLinkColor) customLinkColor = defaultLinkColor;  if (!customActiveColor) customActiveColor = defaultActiveColor;  if (!customVisitedColor) customVisitedColor = defaultVisitedColor;  if (!customBackgroundColor) customBackgroundColor = defaultBackgroundColor;  if (haveCustomColor)  {    // If any colors are set, then check the "Custom" radio button    gDialog.CustomColorsRadio.checked = true;    UseCustomColors();  }  else   {    gDialog.DefaultColorsRadio.checked = true;    UseDefaultColors();  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/4c3cd207e0b294caecafe743584ba94fbc23d262/EdColorProps.js/buggy/editor/ui/dialogs/content/EdColorProps.js