rem: var selectedCalendar = calendarList.currentItem.calendar; 
add: var selectedCalendar = calendarList.selectedItem.calendar; 
context: function getCalendar(){   var calendarList = document.getElementById("list-calendars-listbox");   try {       var selectedCalendar = calendarList.currentItem.calendar;       return selectedCalendar;   } catch(e) {       newCalendarDialog();       selectedCalendar = calendarList.currentItem.calendar;       return selectedCalendar;   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/abfbfbd23979db8b56a1c97b1f71fd1cedd854ca/calendar.js/buggy/calendar/resources/content/calendar.js