rem:   if (aStatusCode == 204) { LOG("Item deleted successfully."); var retVal = Components.results.NS_OK; } else { LOG("Error deleting item: " + aStatusCode);  retVal = Components.results.NS_ERROR_FAILURE; }   if (aListener) { try { aListener.onOperationComplete(thisCalendar, Components.results.NS_OK, aListener.DELETE, aItem.id, null); } catch (ex) { LOG("deleteItem's onOperationComplete threw an" + " exception " + ex + "; ignoring"); } }   if (Components.isSuccessCode(retVal)) { thisCalendar.observeDeleteItem(aItem); } } 
add: LOG("WebDavListener.onOperationComplete() called"); return; }, 
context:         function onOperationComplete(aStatusCode, aResource, aOperation,                                     aClosure) {            // 204 = HTTP "No content"            //            if (aStatusCode == 204) {                LOG("Item deleted successfully.");                var retVal = Components.results.NS_OK;            } else {                LOG("Error deleting item: " + aStatusCode);                // XXX real error handling here                retVal = Components.results.NS_ERROR_FAILURE;            }            // notify the listener            if (aListener) {                try {                    aListener.onOperationComplete(thisCalendar,                                                  Components.results.NS_OK,                                                  aListener.DELETE,                                                  aItem.id,                                                  null);                } catch (ex) {                    LOG("deleteItem's onOperationComplete threw an"                          + " exception " + ex + "; ignoring");                }            }            // notify observers            if (Components.isSuccessCode(retVal)) {                thisCalendar.observeDeleteItem(aItem);            }        }
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/83cd93f2d905bf0219b530cf4d6fa404effd78fd/calDavCalendar.js/clean/calendar/providers/caldav/calDavCalendar.js