rem: reportListener.onOperationComplete = function(aStatusCode, aResource, aOperation, aClosure) {   
add: onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) {  aClosure.onOperationComplete(this, aStatusCode, 0, null, null); 
context:         reportListener.onOperationComplete = function(aStatusCode, aResource,                                                      aOperation, aClosure) {                        // XXX test that something reasonable happens w/notfound            // parse aStatusCode            var rv;            var errString;            if (aStatusCode == 200) { // XXX better error checking                rv = Components.results.NS_OK;            } else {                rv = Components.results.NS_ERROR_FAILURE;                errString = "XXX something bad happened";            }            // call back the listener            try {                if (aListener) {                    aListener.onOperationComplete(thisCalendar,                                                  Components.results.                                                  NS_ERROR_FAILURE,                                                  aListener.GET, null,                                                  errString);                }            } catch (ex) {                    LOG("reportInternal's onOperationComplete threw an"                          + " exception " + ex + "; ignoring");            }            return;        };
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/df88f098a724ead862d69f9275febb94fc829feb/calDavCalendar.js/buggy/calendar/providers/caldav/calDavCalendar.js