rem: var occs = calendarEvent.recurrenceInfo.getOccurrences(calendarEvent.startDate, probeTime, {}); 
add: var occs = calendarEvent.recurrenceInfo.getOccurrences(calendarEvent.startDate, probeTime, 0, {}); 
context: function getCurrentNextOrPreviousRecurrence(calendarEvent){    if (!calendarEvent.recurrenceInfo) {        return calendarEvent;    }    var dur = calendarEvent.duration.clone();    dur.isNegative = true;    // To find current event when now is during event, look for occurrence    // starting duration ago.    var probeTime = now();    probeTime.addDuration(dur);    //XXX getNextOccurrence doesn't work, bug 337346    //var occ = calendarEvent.recurrenceInfo.getNextOccurrence(probeTime);    var occtime = calendarEvent.recurrenceInfo.getNextOccurrenceDate(probeTime);    var occ;    if (!occtime) {        var occs = calendarEvent.recurrenceInfo.getOccurrences(calendarEvent.startDate, probeTime, {});        occ = occs[occs.length -1];    } else {        occ = calendarEvent.recurrenceInfo.getOccurrenceFor(occtime);    }    return occ;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/4d498c123f814651ce246a6011f7ea6a8b0f3450/calendarUtils.js/buggy/calendar/resources/content/calendarUtils.js