add: if (!aCalendar) { aCalendar = ltnSelectedCalendar(); }  
context:     createNewEvent: function (aCalendar, aStartTime, aEndTime) {        // XXX If we're adding an item from the view, let's make sure that        // XXX the calendar in question is visible!                // if we're given both times, skip the dialog        if (aStartTime && aEndTime && !aStartTime.isDate && !aEndTime.isDate) {            var event = createEvent();            event.startDate = aStartTime;            event.endDate = aEndTime;            event.title = "New Event";            aCalendar.addItem(event, null);        } else if (aStartTime && aStartTime.isDate) {            var event = createEvent();            event.startDate = aStartTime;            aCalendar.addItem(event, null);        } else {            // default pop up the dialog            var date = document.getElementById("calendar-view-box").selectedPanel.selectedDay;            date.isDate = false;            createEventWithDialog(aCalendar, date, date);        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0196e72594fc4655b15269a254527a910ae90f09/calendar-management.js/buggy/calendar/lightning/content/calendar-management.js