rem: onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) { try  {    var ioService = Components.classes ["@mozilla.org/network/io-service;1"] .getService(Components.interfaces.nsIIOService); var channel = ioService.newChannelFromURI( fixupUri(savedthis.mUri)); channel.notificationCallbacks = savedthis; var uploadChannel = channel.QueryInterface( Components.interfaces.nsIUploadChannel);   var icsStream = calComp.serializeToICSStream();  uploadChannel.setUploadStream(icsStream, "text/calendar", -1);  channel.asyncOpen(savedthis, savedthis); } catch (ex) { savedthis.mObserver.onError( ex.result, "The calendar could not be saved; there " + "was a failure: 0x" + ex.result.toString(16)); }  return; }, 
add: onOperationComplete: function(aStatusCode, aResource, aOperation, aClosure) { }, 
context:             onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail)            {                try  {                    // All events are returned. Now set up a channel and a                    // streamloader to upload.  onStopRequest will be called                    // once the write has finished                    var ioService = Components.classes                        ["@mozilla.org/network/io-service;1"]                        .getService(Components.interfaces.nsIIOService);                    var channel = ioService.newChannelFromURI(                        fixupUri(savedthis.mUri));                    channel.notificationCallbacks = savedthis;                    var uploadChannel = channel.QueryInterface(                        Components.interfaces.nsIUploadChannel);                    // do the actual serialization                    var icsStream = calComp.serializeToICSStream();                    uploadChannel.setUploadStream(icsStream, "text/calendar",                                                  -1);                    channel.asyncOpen(savedthis, savedthis);                } catch (ex) {                    savedthis.mObserver.onError(                        ex.result, "The calendar could not be saved; there " +                        "was a failure: 0x" + ex.result.toString(16));                }                return;            },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/2cd5ad4e15f5a732d3db97d117d45263b4186d2b/calICSCalendar.js/buggy/calendar/providers/ics/calICSCalendar.js