rem: this.storeItem( item, oldItem, function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } ); 
add: if (!this.storeItem( item, oldItem, function( wcapResponse ) { this_.adoptItem_resp( wcapResponse, item, listener ); } )) { if (listener) { listener.onOperationComplete( this.superCalendar, Components.results.NS_OK, Components.interfaces.calIOperationListener.ADD, item.id, item ); } this.notifyObservers( "onAddItem", [item] ); } 
context: calWcapCalendar.prototype.adoptItem_queued = function( item, listener ){    this.log( "adoptItem() call: " + item.title );    try {        this.assureAccess(Components.interfaces.calIWcapCalendar.AC_COMP_WRITE);                // xxx todo: workaround really necessary for adding an occurrence?        var oldItem = null;        if (!isParent(item)) {            this.logError( "adoptItem(): unexpected proxy!" );            debugger;            item.parentItem.recurrenceInfo.modifyException( item );            oldItem = item; // patch to modify        }                var this_ = this;        this.storeItem(            item, oldItem,            function( wcapResponse ) {                this_.adoptItem_resp( wcapResponse, item, listener );            } );    }    catch (exc) {        if (listener != null) {            listener.onOperationComplete(                this.superCalendar, Components.results.NS_ERROR_FAILURE,                Components.interfaces.calIOperationListener.ADD,                item.id, exc );        }        this.notifyError( exc );    }    this.log( "adoptItem() returning." );};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/fa325266ffa73287d45aed7b0452fbbfefc07f85/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js