rem: newItem.calendar = this; newItem.generation = 1; newItem.makeImmutable();  this.flushItem (newItem, null);   if (aListener) aListener.onOperationComplete (this, Components.results.NS_OK, aListener.ADD, newItem.id, newItem);   this.observeAddItem(newItem); 
add: return this.adoptItem(newItem, aListener); 
context:     addItem: function (aItem, aListener) {        if (this.readOnly)             throw Components.interfaces.calIErrors.CAL_IS_READONLY;        // Ensure that we're looking at the base item        // if we were given an occurrence.  Later we can        // optimize this.        if (aItem.parentItem != aItem) {            aItem.parentItem.recurrenceInfo.modifyException(aItem);        }        aItem = aItem.parentItem;        if (aItem.id == null) {            // is this an error?  Or should we generate an IID?            aItem.id = "uuid:" + (new Date()).getTime();        } else {            var olditem = this.getItemById(aItem.id);            if (olditem) {                if (aListener)                    aListener.onOperationComplete (this,                                                   Components.results.NS_ERROR_FAILURE,                                                   aListener.ADD,                                                   aItem.id,                                                   "ID already exists for addItem");                return;            }        }        var newItem = aItem.clone();        newItem.calendar = this;        newItem.generation = 1;        newItem.makeImmutable();        this.flushItem (newItem, null);        // notify the listener        if (aListener)            aListener.onOperationComplete (this,                                           Components.results.NS_OK,                                           aListener.ADD,                                           newItem.id,                                           newItem);        // notify observers        this.observeAddItem(newItem);    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/94b0ab51d7e3979fae066e4cb978f89bc0d8370b/calStorageCalendar.js/clean/calendar/providers/storage/calStorageCalendar.js