add:  if (count == gItems.length) { destCal.endBatch(); if (failedCount) showError(failedCount+" items failed to import. The last error was: "+lastError.toString()); } } 
context:             onOperationComplete: function(aCalendar, aStatus, aOperationType, aId, aDetail) {                count++;                if (!Components.isSuccessCode(aStatus)) {                    failedCount++;                    lastError = aStatus;                }                // See if it is time to end the calendar's batch.                if (count == items.length) {                    destCal.endBatch();                    if (failedCount)                        showError(failedCount+" items failed to import. The last error was: "+lastError.toString());                }            }
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/f5c02c755c91f396f78f1f1c713ea0a0002e4e76/import-export.js/buggy/calendar/base/content/import-export.js