calWcapCalendar.prototype.deleteItem_resp = function( wcapResponse, item, listener ) { try { var xml = wcapResponse.data;   if (item.isMutable) { item.makeImmutable(); } if (listener != null) { listener.onOperationComplete( this.superCalendar, Components.results.NS_OK, Components.interfaces.calIOperationListener.DELETE, item.id, item ); } this.notifyObservers( "onDeleteItem", [item] ); if (LOG_LEVEL > 0) { this.log( "deleteItem_resp(): " + getWcapRequestStatusString(xml) ); } } catch (exc) { if (listener != null) { listener.onOperationComplete( this.superCalendar, Components.results.NS_ERROR_FAILURE, Components.interfaces.calIOperationListener.DELETE, item.id, exc ); } this.notifyError( exc ); } }; 
function deleteItem_resp(request, err) {  if (listener) { listener.onOperationComplete( this_.superCalendar, getResultCode(err), calIOperationListener.DELETE, item.id, err ? err : item); } if (err) this_.notifyError(err); else this_.notifyObservers("onDeleteItem", [item]); }, 
calWcapCalendar.prototype.deleteItem_resp = function(    wcapResponse, item, listener ){    try {        var xml = wcapResponse.data; // first statement, may throw                // xxx todo: need to notify about each deleted item if multiple?        if (item.isMutable) {            item.makeImmutable();        }        if (listener != null) {            listener.onOperationComplete(                this.superCalendar, Components.results.NS_OK,                Components.interfaces.calIOperationListener.DELETE,                item.id, item );        }        this.notifyObservers( "onDeleteItem", [item] );        if (LOG_LEVEL > 0) {            this.log( "deleteItem_resp(): " +                      getWcapRequestStatusString(xml) );        }    }    catch (exc) {        if (listener != null) {            listener.onOperationComplete(                this.superCalendar, Components.results.NS_ERROR_FAILURE,                Components.interfaces.calIOperationListener.DELETE,                item.id, exc );        }        this.notifyError( exc );    }};
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/a8adf4992620da379274cea3395ed3099b6769d6/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js