rem: calendar.modifyItem(calendarEvent, null); else { originalEvent.parent.deleteItem(calendarEvent, null); calendar.addItem(calendarEvent, null); } 
add: doTransaction('modify', calendarEvent, calendar, originalEvent, null); else doTransaction('move', calendarEvent, calendar, originalEvent, null); 
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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/94ba73e1e0ab1eea4efc3f951f1ef6ec5eca64ea/calendar.js/buggy/calendar/resources/content/calendar.js