rem: originalEvent.parent.removeItem(calendarEvent, null); 
add: originalEvent.parent.deleteItem(calendarEvent, null); 
context: function saveItem( calendarEvent, calendar, functionToRun, originalEvent ){    dump(functionToRun + " " + calendarEvent.title + "\n");    if (functionToRun == 'addEvent')        calendar.addItem(calendarEvent, null);    else if (functionToRun == 'modifyEvent') {        if (!originalEvent.parent || (originalEvent.parent == calendar))            calendar.modifyItem(calendarEvent, null);        else {            originalEvent.parent.removeItem(calendarEvent, null);            calendar.addItem(calendarEvent, null);        }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/abfbfbd23979db8b56a1c97b1f71fd1cedd854ca/calendar.js/buggy/calendar/resources/content/calendar.js