rem:   if (aStatusCode == 204) { debug("Item modified successfully.\n"); var retVal = Components.results.NS_OK;  } else { debug("Error modifying item: " + aStatusCode + "\n");        retVal = Components.results.NS_ERROR_FAILURE; }    if (aListener) { try { aListener.onOperationComplete(thisCalendar, retVal, aListener.MODIFY, aNewItem.id, aNewItem); } catch (ex) { debug("modifyItem's onOperationComplete threw an" + " exception " + ex + "; ignoring\n"); } }   if (Components.isSuccessCode(retVal)) { thisCalendar.observeModifyItem(aNewItem, aOldItem); }  return; } 
add: debug("WebDavListener.onOperationComplete() called\n"); return; }, 
context:         listener.onOperationComplete = function(aStatusCode, aResource,                                                aOperation, aClosure) {            // 204 = HTTP "No Content"            //            if (aStatusCode == 204) {                debug("Item modified successfully.\n");                var retVal = Components.results.NS_OK;            } else {                debug("Error modifying item: " + aStatusCode + "\n");                // XXX deal with non-existent item here, other                // real error handling                // XXX aStatusCode will be 201 Created for a PUT on an item                // that didn't exist before.                retVal = Components.results.NS_ERROR_FAILURE;            }            // XXX ensure immutable version returned            // notify listener            if (aListener) {                try {                    aListener.onOperationComplete(thisCalendar, retVal,                                                  aListener.MODIFY,                                                  aNewItem.id, aNewItem);                } catch (ex) {                    debug("modifyItem's onOperationComplete threw an"                          + " exception " + ex + "; ignoring\n");                }            }            // notify observers            if (Components.isSuccessCode(retVal)) {                thisCalendar.observeModifyItem(aNewItem, aOldItem);            }            return;        }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/d0d088d1a8c3d8e0961b9f25f5a2042f59fd8ce1/calDavCalendar.js/buggy/calendar/providers/caldav/calDavCalendar.js