rem: label = selectedItems && selectedItems.length && selectedItems[0].label; 
add: label = selectedItems && selectedItems.length && selectedItems.item(0).label; 
context: function ViewChangeByValue(aValue){  var label = "";  var viewPickerPopup = document.getElementById("viewPickerPopup");  if (viewPickerPopup)  {    // grab the label for the menulist from one of its menuitems    var selectedItems = viewPickerPopup.getElementsByAttribute("value", aValue);    if (!selectedItems || !selectedItems.length)    {      // we may have a new item      RefreshViewPopup(viewPickerPopup, true);      selectedItems = viewPickerPopup.getElementsByAttribute("value", aValue);    }    label = selectedItems && selectedItems.length && selectedItems[0].label;  }  ViewChange(aValue, label);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/01611874f234ed194a1f43fcf4663c225a6360c1/msgViewPickerOverlay.js/clean/mailnews/extensions/mailviews/resources/content/msgViewPickerOverlay.js