rem: if (functionToRun == 'addEvent') calendar.addItem(calendarEvent, null);  else if (functionToRun == 'modifyEvent') { 
add: if (functionToRun == 'addEvent') { doTransaction('add', calendarEvent, calendar, null, null); } else if (functionToRun == 'modifyEvent') { 
context: function saveItem( calendarEvent, calendar, functionToRun, originalEvent ){    dump(functionToRun + " " + calendarEvent.title + "\n");    if (functionToRun == 'addEvent')        calendar.addItem(calendarEvent, null);    else if (functionToRun == 'modifyEvent') {        // compare cal.uri because there may be multiple instances of        // calICalendar or uri for the same spec, and those instances are        // not ==.        if (!originalEvent.parent ||             (originalEvent.parent.uri.equals(calendar.uri)))            calendar.modifyItem(calendarEvent, null);        else {            originalEvent.parent.deleteItem(calendarEvent, null);            calendar.addItem(calendarEvent, null);        }    }}
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/6167c963c8fd1d61d01be2b4ef08dd3c32013408/calendar.js/clean/calendar/resources/content/calendar.js