rem: var result = { value: entry.valueCol }; var dummy = { value: 0 };  if (!gPromptService.prompt(window, gConfigBundle.getFormattedString("modify_title", [gTypeStrs[entry.typeCol]]), entry.prefCol, result, null, dummy)) return false; switch (entry.typeCol) { case nsIPrefBranch.PREF_BOOL: gPrefBranch.setBoolPref(entry.prefCol, result.value == "true" || !!parseInt(result.value, 10)); break; case nsIPrefBranch.PREF_INT: 
add: var title = gConfigBundle.getFormattedString("modify_title", [gTypeStrs[entry.typeCol]]); if (entry.typeCol == nsIPrefBranch.PREF_BOOL) { var check = { value: entry.valueCol == "false" }; if (!entry.valueCol && !gPromptService.select(window, title, entry.prefCol, 2, [false, true], check)) return false; gPrefBranch.setBoolPref(entry.prefCol, check.value); } else { var result = { value: entry.valueCol }; var dummy = { value: 0 }; if (!gPromptService.prompt(window, title, entry.prefCol, result, null, dummy)) return false; if (entry.typeCol == nsIPrefBranch.PREF_INT) { 
context: function ModifyPref(entry){  if (entry.lockCol == PREF_IS_LOCKED)    return false;  var result = { value: entry.valueCol };  var dummy = { value: 0 };  // XXX get this from a string bundle  if (!gPromptService.prompt(window,                             gConfigBundle.getFormattedString("modify_title", [gTypeStrs[entry.typeCol]]),                             entry.prefCol,                             result,                             null,                             dummy))    return false;  switch (entry.typeCol) {    case nsIPrefBranch.PREF_BOOL:      gPrefBranch.setBoolPref(entry.prefCol, result.value == "true" || !!parseInt(result.value, 10));      break;    case nsIPrefBranch.PREF_INT:      gPrefBranch.setIntPref(entry.prefCol, parseInt(result.value, 10));      break;    default:    case nsIPrefBranch.PREF_STRING:      var supportsString = Components.classes[nsSupportsString_CONTRACTID].createInstance(nsISupportsString);      supportsString.data = result.value;      gPrefBranch.setComplexValue(entry.prefCol, nsISupportsString, supportsString);      break;  }  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/1ccaac47f6f725e96b46e0d13fef00673ed19e49/config.js/buggy/toolkit/components/viewconfig/content/config.js