else params += ("&mod=1&rid=" + getIcalUTC(item.recurrenceId)); 
else { var rid = item.recurrenceId; if (rid.isDate) {  rid = rid.clone(); rid.isDate = false; } params += ("&mod=1&rid=" + getIcalUTC(rid)); } 
function calWcapCalendar_deleteItem(item, listener){    var this_ = this;    var request = new calWcapRequest(        function deleteItem_resp(request, err) {            // xxx todo: need to notify about each deleted item if multiple?            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]);        },        log("deleteItem() call: " + item.id, this));        try {        if (!item.id)            throw new Components.Exception("no item id!");        var params = ("&uid=" + encodeURIComponent(item.id));        if (isParent(item)) // delete THIS AND ALL:            params += "&mod=4&rid=0";        else // delete THIS INSTANCE:            params += ("&mod=1&rid=" + getIcalUTC(item.recurrenceId));        params += "&fmt-out=text%2Fxml";                this.issueNetworkRequest(            request,            function netResp(err, xml) {                if (err)                    throw err;                // invalidate cached results:                delete this_.m_cachedResults;                if (LOG_LEVEL > 0)                    log("deleteItem(): " + getWcapRequestStatusString(xml), this_);            },            stringToXml, isEvent(item) ? "deleteevents_by_id" : "deletetodos_by_id",            params, calIWcapCalendar.AC_COMP_WRITE);    }    catch (exc) {        request.execRespFunc(exc);    }    return request;};
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/ca9241eb70b9d37b5cc4c031f828e6dcfc7e37e7/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js