rem: if (ltnCurrentMode() != 'calendar') { 
add: if (gCurrentMode != 'calendar') { 
context: function ltnSwitch2Calendar() {  if (ltnCurrentMode() != 'calendar') {    var switch2mail = document.getElementById("switch2mail");    var switch2calendar = document.getElementById("switch2calendar");    switch2calendar.setAttribute("checked", "true");    switch2mail.removeAttribute("checked");    var mailToolbar = getMailBar();    var calendarToolbar = document.getElementById("calendar-toolbar");    mailToolbar.setAttribute("collapsed", "true");    calendarToolbar.removeAttribute("collapsed");    // the content deck should display the calendar panel    var contentDeck = document.getElementById("contentPanel");    contentDeck.selectedPanel = document.getElementById("ltnSidebar");    // display the calendar panel on the display deck    var deck = document.getElementById("displayDeck");    deck.selectedPanel = document.getElementById("calendar-view-box");    // show the last displayed type of calendar view    if(gLastShownCalendarView == null)      gLastShownCalendarView = 'week';    showCalendarView(gLastShownCalendarView);    document.commandDispatcher.updateCommands('mail-toolbar');    document.commandDispatcher.updateCommands('calendar_commands');        gCurrentMode = 'calendar';  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/4e4e553d858c94cfa63d04c3f9ae121c96902a9c/messenger-overlay-toolbar.js/clean/calendar/lightning/content/messenger-overlay-toolbar.js