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: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/8f63172b260480df6e5ed9d778659057f8eba946/messenger-overlay-sidebar.js/buggy/calendar/lightning/content/messenger-overlay-sidebar.js