mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
bug 270995: look at exceptions after looking at addiotions, to make expections work. patch by daniel.boelzle@sun.com, r=mvl
This commit is contained in:
parent
d41b8a15d0
commit
4e901494fc
@ -328,8 +328,16 @@ calRecurrenceInfo.prototype = {
|
||||
|
||||
var startDate = this.mBaseItem.recurrenceStartDate;
|
||||
var dates = [];
|
||||
|
||||
for each (ritem in this.mRecurrenceItems) {
|
||||
|
||||
// apply positive items before negative:
|
||||
var sortedRecurrenceItems = [];
|
||||
for each ( var ritem in this.mRecurrenceItems ) {
|
||||
if (ritem.isNegative)
|
||||
sortedRecurrenceItems.push(ritem);
|
||||
else
|
||||
sortedRecurrenceItems.unshift(ritem);
|
||||
}
|
||||
for each (ritem in sortedRecurrenceItems) {
|
||||
var cur_dates;
|
||||
|
||||
// if both range start and end are specified, we ask for all of the occurrences,
|
||||
|
Loading…
Reference in New Issue
Block a user