rem: function updateContextMenu(popup) { if (view.selection.currentIndex < 0) return false; var pref = gPrefView[view.selection.currentIndex]; var reset = popup.lastChild; reset.setAttribute("disabled", pref.lockCol != PREF_IS_USER_SET); var modify = reset.previousSibling; modify.setAttribute("disabled", pref.lockCol == PREF_IS_LOCKED); return true; 
add: function updateContextMenu() { var lockCol = PREF_IS_LOCKED; var typeCol = nsIPrefBranch.PREF_STRING; var valueCol = ""; var copyDisabled = true;  if (view.selection.currentIndex >= 0) { var prefRow = gPrefView[view.selection.currentIndex]; lockCol = prefRow.lockCol; typeCol = prefRow.typeCol; valueCol = prefRow.valueCol; copyDisabled = false; }  var copyName = document.getElementById("copyName"); copyName.setAttribute("disabled", copyDisabled);  var copyValue = document.getElementById("copyValue"); copyValue.setAttribute("disabled", copyDisabled);  var resetSelected = document.getElementById("resetSelected"); resetSelected.setAttribute("disabled", lockCol != PREF_IS_USER_SET);  var canToggle = typeCol == nsIPrefBranch.PREF_BOOL && valueCol != "";  var modifySelected = document.getElementById("modifySelected"); modifySelected.setAttribute("disabled", lockCol == PREF_IS_LOCKED); modifySelected.hidden = canToggle;  var toggleSelected = document.getElementById("toggleSelected"); toggleSelected.setAttribute("disabled", lockCol == PREF_IS_LOCKED); toggleSelected.hidden = !canToggle; 
context: function updateContextMenu(popup) {  if (view.selection.currentIndex < 0)    return false;  var pref = gPrefView[view.selection.currentIndex];  var reset = popup.lastChild;  reset.setAttribute("disabled", pref.lockCol != PREF_IS_USER_SET);  var modify = reset.previousSibling;  modify.setAttribute("disabled", pref.lockCol == PREF_IS_LOCKED);  return true;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c0bb9b17452175c08d20b8123e692e191df4ce45/config.js/clean/xpfe/global/resources/content/config.js