rem: widthInt = Number(width.substr(0, percentIndex)); } else { percent = false; widthInt = Number(width); 
add: widthInt = Number(100); 
context: function onSaveDefault(){  // "false" means set attributes on the globalElement,  //   not the real element being edited  if (ValidateData()) {    var prefs = GetPrefs();    if (prefs) {      dump("Setting HLine prefs\n");      var alignInt;      if (align == "left") {        alignInt = 0;      } else if (align == "right") {        alignInt = 2;      } else {        alignInt = 1;      }      prefs.SetIntPref("editor.hrule.align", alignInt);      var percentIndex = width.search(/%/);      var percent;      var widthInt;      if (percentIndex > 0) {        percent = true;        widthInt = Number(width.substr(0, percentIndex));      } else {        percent = false;        widthInt = Number(width);      }      prefs.SetIntPref("editor.hrule.width", widthInt);      prefs.SetBoolPref("editor.hrule.width_percent", percent);      // Convert string to number      prefs.SetIntPref("editor.hrule.height", Number(height));      prefs.SetBoolPref("editor.hrule.shading", shading);      // Write the prefs out NOW!      prefs.SavePrefFile();    }	}}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/c2fa3c49b1c16b046947244c53e8da3ed6bef89f/EdHLineProps.js/clean/editor/ui/dialogs/content/EdHLineProps.js