add: var rec = aItem.recurrenceInfo; if (rec) { var exceptions = rec.getExceptionIds({}); for each (var exid in exceptions) { var exception = rec.getExceptionFor(exid, false); if (exception) { if (!exception.isMutable) { exception = exception.clone(); } exception.calendar = this.calendarToReturn; rec.modifyException(exception); } } }  
context:     adoptItem: function (aItem, aListener) {        if (this.readOnly)             throw Components.interfaces.calIErrors.CAL_IS_READONLY;        if (aItem.id == null && aItem.isMutable)            aItem.id = getUUID();        if (aItem.id == null) {            if (aListener)                aListener.onOperationComplete (this.calendarToReturn,                                               Components.results.NS_ERROR_FAILURE,                                               aListener.ADD,                                               aItem.id,                                               "Can't set ID on non-mutable item to addItem");            return;        }        if (this.mItems[aItem.id] != null) {            // is this an error?            if (aListener)                aListener.onOperationComplete (this.calendarToReturn,                                               Components.results.NS_ERROR_FAILURE,                                               aListener.ADD,                                               aItem.id,                                               "ID already exists for addItem");            return;        }        aItem.calendar = this.calendarToReturn;        aItem.generation = 1;        aItem.makeImmutable();        this.mItems[aItem.id] = aItem;        // notify the listener        if (aListener)            aListener.onOperationComplete (this.calendarToReturn,                                           Components.results.NS_OK,                                           aListener.ADD,                                           aItem.id,                                           aItem);        // notify observers        this.observeAddItem(aItem);    },
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/f118cef754d579a1dca5e874b4272f486e00b504/calMemoryCalendar.js/clean/calendar/providers/memory/calMemoryCalendar.js