rem: this.storeItem( newItem, oldItem, function( wcapResponse ) { this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener); } ); 
add: if (!this.storeItem( newItem, oldItem, function( wcapResponse ) { this_.modifyItem_resp( wcapResponse, newItem, oldItem, listener); } )) {  if (listener) { listener.onOperationComplete( this.superCalendar, Components.results.NS_OK, Components.interfaces.calIOperationListener.MODIFY, oldItem.id, oldItem ); } this.notifyObservers( "onModifyItem", [oldItem, oldItem] ); } 
context: calWcapCalendar.prototype.modifyItem_queued = function(    newItem, oldItem, listener ){    this.log( "modifyItem() call: " + newItem.id );        try {        this.assureAccess(Components.interfaces.calIWcapCalendar.AC_COMP_WRITE);                if (!newItem.id)            throw new Components.Exception("new item has no id!");                var this_ = this;        this.storeItem(            newItem, oldItem,            function( wcapResponse ) {                this_.modifyItem_resp(wcapResponse, newItem, oldItem, listener);            } );    }    catch (exc) {        if (listener != null) {            listener.onOperationComplete(                this.superCalendar, Components.results.NS_ERROR_FAILURE,                Components.interfaces.calIOperationListener.MODIFY,                newItem.id, exc );        }        this.notifyError( exc );    }    this.log( "modifyItem() returning." );};
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/b5fab442cc66c02f0d2b258985f625f9bf47e419/calWcapCalendarItems.js/clean/calendar/providers/wcap/calWcapCalendarItems.js