rem: var calendarList = document.getElementById('event-calendar'); 
add: var calendarList = document.getElementById("event-calendar"); 
context: function loadDialog(){    const kDefaultTimezone = calendarDefaultTimezone();    var event = window.calendarEvent;    setElementValue("event-title",       event.title);    setElementValue("event-all-day",     event.isAllDay, "checked");    setElementValue("event-starttime",   event.startDate.getInTimezone(kDefaultTimezone).jsDate);    setElementValue("event-endtime",     event.endDate.getInTimezone(kDefaultTimezone).jsDate);    setElementValue("event-location",    event.getProperty("LOCATION"));    setElementValue("event-url",         event.getProperty("URL"));    setElementValue("event-description", event.getProperty("DESCRIPTION"));    /* event default calendar */    if (event.parent) {        var calendarList = document.getElementById('event-calendar');        var calendars = getCalendarManager().getCalendars({});        for (i in calendars) {            if (event.parent.uri.equals(calendars[i].uri))                calendarList.selectedIndex = i;        }    }    if (event.recurrenceInfo) {        setElementValue("event-recurrence", "true", "checked");    }    if (event.hasAlarm) {        var alarmLength = event.getProperty("alarmLength");        if (alarmLength != null) {            setElementValue("alarm-length-field", alarmLength);            setElementValue("alarm-length-units", event.getProperty("alarmUnits"));            setElementValue("alarm-trigger-relation", event.getProperty("alarmRelated"));        }        setElementValue("event-alarm", "custom");    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/d3e88b94f9db8799ca78214ea6203e6ec233248e/calendar-event-dialog.js/clean/calendar/base/content/calendar-event-dialog.js