rem: getAdditionalDataForItem: function (item) { if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { 
add: getAdditionalDataForItem: function (item, flags) { if (flags & CAL_ITEM_FLAG_HAS_ATTENDEES) { 
context:     getAdditionalDataForItem: function (item) {        if (item.flags & CAL_ITEM_FLAG_HAS_ATTENDEES) {            this.mSelectAttendeesForItem.params.event_id = item.id;            while (this.mSelectAttendeesForItem.step()) {                var attendee = this.mNewAttendeeFromRow(this.mSelectAttendeesForItem.row);                item.addAttendee(attendee);            }            this.mSelectAttendeesForItem.reset();        }        if (item.flags & CAL_ITEM_FLAG_HAS_PROPERTIES) {            this.mSelectPropertiesForItem.params.item_id = item.id;            // ...        }        if (item.flags & CAL_ITEM_FLAG_HAS_RECURRENCE) {            this.mSelectRecurrenceForItem.params.item_id = item.id;            if (this.mSelectRecurrenceForItem.step()) {                var row = this.mSelectRecurrenceForItem.row;                var rec = item.rec;                rec.recur_type = row.recur_type;                rec.count = row.count;                var rtypes = [calIRecurrenceInfo.CAL_RECUR_BYSECOND, "second",                              calIRecurrenceInfo.CAL_RECUR_BYMINUTE, "minute",                              calIRecurrenceInfo.CAL_RECUR_BYHOUR, "hour",                              calIRecurrenceInfo.CAL_RECUR_BYDAY, "day",                              calIRecurrenceInfo.CAL_RECUR_BYMONTHDAY, "monthday",                              calIRecurrenceInfo.CAL_RECUR_BYYEARDAY, "yearday",                              calIRecurrenceInfo.CAL_RECUR_BYWEEKNO, "weekno",                              calIRecurrenceInfo.CAL_RECUR_BYMONTH, "month",                              calIRecurrenceInfo.CAL_RECUR_BYSETPOS, "setpos"];                for (var i = 0; i < rtypes.length; i += 2) {                    if (row[rtypes[i+1]]) {                        var rstr = row[rtypes[i+1]].split(",");                        var rarray = [];                        for (var j = 0; j < rstr.length; j++) {                            rarray[j] = parseInt(rstr[j]);                        }                        rec.setComponent (rtypes[i], rarray.length, rarray);                    }                }            } else {                dump ("+++ Expected to find recurrence for item " + item.id + ", but found none\n");            }            this.mSelectRecurrenceForItem.reset();        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/5498afda0b222ed59ecf0179fc7dcc99424b88a9/calStorageCalendar.js/buggy/calendar/providers/storage/calStorageCalendar.js