rem: listener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) { 
add: onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) {  aClosure.onOperationComplete(this, aStatusCode, 0, null, null); 
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 {                if (aStatusCode > 999) {                    aStatusCode = "0x " + aStatusCode.toString(16);                }                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: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/10aa71fd0bd91b8cabbafaa5c1a8ab2ea0f210dc/calDavCalendar.js/clean/calendar/providers/caldav/calDavCalendar.js