add: }    var parentItem = occurrence.parentItem; var rec = parentItem.recurrenceInfo; if (rec) { var exceptions = rec.getExceptionIds({}); if (exceptions.some(function (exid) { return exid.compare(occurrence.recurrenceId) == 0; })) { return occurrence; } 
context: function getOccurrenceOrParent(occurrence) {    // Check if this actually is an instance of a recurring event    if (occurrence == occurrence.parentItem) {        return occurrence;    }    var promptService =              Components.classes["@mozilla.org/embedcomp/prompt-service;1"]                       .getService(Components.interfaces.nsIPromptService);    var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"]                        .getService(Components.interfaces.nsIStringBundleService);    var props =  sbs.createBundle("chrome://calendar/locale/calendar.properties");    var promptTitle = props.GetStringFromName("editRecurTitle");    var promptMessage = props.GetStringFromName("editRecurMessage");    var buttonLabel1 = props.GetStringFromName("editRecurAll");    var buttonLabel2 = props.GetStringFromName("editRecurSingle");    var flags = promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0 +                promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_1;    if (promptService.confirmEx(null, promptTitle, promptMessage, flags,                                 buttonLabel1, buttonLabel2, null, null, {})) {        return occurrence;    } else {        return occurrence.parentItem;    }}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/6b1a8e840da62069c966f4c6439db88388626cb9/calendar-item-editing.js/buggy/calendar/base/content/calendar-item-editing.js