rem:  var threadedMenuItem = document.getElementById("viewThreaded"); if (threadedMenuItem) threadedMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kThreadedDisplay) != 0);  
context: function InitViewMessageViewMenu(){  var viewFlags = (gDBView) ? gDBView.viewFlags : 0;  var viewType = (gDBView) ? gDBView.viewType : 0;  var threadedMenuItem = document.getElementById("viewThreaded");  if (threadedMenuItem)    threadedMenuItem.setAttribute("checked", (viewFlags & nsMsgViewFlagsType.kThreadedDisplay) != 0);  var currentViewValue = document.getElementById("viewPicker").value;  var allMenuItem = document.getElementById("viewAll");  if(allMenuItem)    allMenuItem.setAttribute("checked",  currentViewValue == 0);  // from msgViewPickerOveraly.xul <menuitem value="0" id="viewPickerAll" label="&viewPickerAll.label;"/>      var unreadMenuItem = document.getElementById("viewUnread");  if(unreadMenuItem)    unreadMenuItem.setAttribute("checked", currentViewValue == 1); // from msgViewPickerOveraly.xul, <menuitem value="1" id="viewPickerUnread" label="&viewPickerUnread.label;"/>    for (var i = 1; i <= 5; i++) {    var prefString = gPrefBranch.getComplexValue("mailnews.labels.description." + i, Components.interfaces.nsIPrefLocalizedString).data;    var viewLabelMenuItem = document.getElementById("viewLabelMenuItem" + i);    viewLabelMenuItem.setAttribute("label", prefString);    viewLabelMenuItem.setAttribute("checked", (i == (currentViewValue - 1)));  // 1=2-1, from msgViewPickerOveraly.xul, <menuitem value="2" id="labelMenuItem1"/>  }  viewRefreshCustomMailViews(currentViewValue);}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/2a90cb5f9981300a1c3fa50788f7af4968a5a124/mailWindowOverlay.js/buggy/mail/base/content/mailWindowOverlay.js