rem: if (count == gItems.length) { 
add: if (count == aItems.length) { 
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 == gItems.length) {                destCal.endBatch();                if (failedCount)                    showError(failedCount+" items failed to import. The last error was: "+lastError.toString());            }        }
meta: 5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5872/9d345103005c2ed7dde7c3df7736ea01afe51e97/import-export.js/buggy/calendar/base/content/import-export.js