rem: getCompositeCalendar().defaultCalendar = ltnSelectedCalendar(); 
add: var selectedCalendar = ltnSelectedCalendar(); if (selectedCalendar) { var compositeCalendar = getCompositeCalendar(); if (!compositeCalendar.getCalendar(selectedCalendar.uri)) { compositeCalendar.addCalendar(selectedCalendar); } compositeCalendar.defaultCalendar = selectedCalendar; } 
context: function ltnSidebarCalendarSelected(tree){   getCompositeCalendar().defaultCalendar = ltnSelectedCalendar();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4110d77de3a76d01fc451e60001db912e03f4741/messenger-overlay-sidebar.js/clean/calendar/lightning/content/messenger-overlay-sidebar.js