rem: if (deck.selectedPanel.id == "calendarViewBox") { 
add: var id = null; try { id = deck.selectedPanel.id } catch (e) { } if (id == "calendar-view-box") { 
context: function LtnObserveDisplayDeckChange(event){    var deck = event.target;    if (deck.selectedPanel.id == "calendarViewBox") {        GetMessagePane().collapsed = true;        document.getElementById("threadpane-splitter").collapsed = true;        gSearchBox.collapsed = true;    } else {        // nothing to "undo" for now        // Later: mark the view as not needing reflow due to new events coming        // in, for better performance and batching.    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/2c46990d8551530f29776226b9828d7b889dc047/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js