context: 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:            var rid = item.recurrenceId;            if (rid.isDate) {                // cs does not accept DATE:                rid = rid.clone();                rid.isDate = false;            }            params += ("&mod=1&rid=" + getIcalUTC(rid));        }                var orgCalId = getCalId(item.organizer);        if (!orgCalId || (orgCalId != this.calId)) {            // item does not belong to this user, so son't notify:            params += "&smtp=0&smtpNotify=0&notify=0";        }                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;};
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/6572acebad533e0b847483fbb300918d3b9c1492/calWcapCalendarItems.js/buggy/calendar/providers/wcap/calWcapCalendarItems.js