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