rem:  if (id != "calendar-view-box" && gCurrentMode != 'mail') { ltnSwitch2Mail(); 
add:    if (gCurrentMode != 'mail') { if (id != "calendar-view-box" && id != "calendar-task-box") { ltnSwitch2Mail(); } 
context: function LtnObserveDisplayDeckChange(event) {    var deck = event.target;    // Bug 309505: The 'select' event also fires when we change the selected    // panel of calendar-view-box.  Workaround with this check.    if (deck.id != "displayDeck") {        return;    }    var id = null;    try { id = deck.selectedPanel.id } catch (e) { }    // Switch back to mail mode in case we find that this    // notification has been fired but we're still in calendar mode.    if (id != "calendar-view-box" && gCurrentMode != 'mail') {        ltnSwitch2Mail();    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4f4c0eb29c387abfad079877e7c95e6882509c89/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js