rem: var itemToEdit = getOccurrenceOrParent(aOccurrence); 
add: var itemToEdit; 
context:     modifyOccurrence: function (aOccurrence, aNewStartTime, aNewEndTime) {        // if we can modify this thing directly (e.g. just the time changed),        // then do so; otherwise pop up the dialog        var itemToEdit = getOccurrenceOrParent(aOccurrence);        if (aNewStartTime && aNewEndTime) {                    var instance = itemToEdit.clone();            // if we're about to modify the parentItem, we need to account            // for the possibility that the item passed as argument was            // some other occurrence, but the user said she would like to            // modify all ocurrences instead.  In that case, we need to figure            // out how much the occurrence moved, and move the occurrence by            // that amount.            if (instance.parentItem.hasSameIds(instance)) {                //XXX bad! Don't modify in-params!                var startDiff = instance.startDate.subtractDate(aOccurrence.startDate);                aNewStartTime.addDuration(startDiff);                var endDiff = instance.endDate.subtractDate(aOccurrence.endDate);                aNewEndTime.addDuration(endDiff);            }            instance.startDate = aNewStartTime;            instance.endDate = aNewEndTime;            doTransaction('modify', instance, instance.calendar, itemToEdit, null);        } else {            //XXX unify these            if ("editEvent" in window) {                // Sunbird specific code                editEvent();            } else {                // Lightning specific code                modifyEventWithDialog(itemToEdit);            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/6740cb7086e66236fd742b2230f4e67fec9e0d66/calendar-views.js/clean/calendar/base/content/calendar-views.js