Skip to content

Commit 2096b84

Browse files
authoredMar 13, 2018
Fixed usage of addDuration (which returns void)
1 parent 166cf0d commit 2096b84

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎calendar/interface/exchangeCalendar/mivExchangeCalendar.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -2597,7 +2597,8 @@ calExchangeCalendar.prototype = {
25972597
let offset = cal.createDuration();
25982598
offset.weeks = -5;
25992599

2600-
aRangeStart = cal.now().addDuration(offset);
2600+
aRangeStart = cal.now()
2601+
aRangeStart.addDuration(offset);
26012602

26022603
// If cache already contains a bigger range, use it
26032604
if (this.startDate
@@ -2614,7 +2615,8 @@ calExchangeCalendar.prototype = {
26142615
let offset = cal.createDuration();
26152616
offset.weeks = 5;
26162617

2617-
aRangeEnd = cal.now().addDuration(offset);
2618+
aRangeEnd = cal.now()
2619+
aRangeEnd.addDuration(offset);
26182620

26192621
// If cache already contains a bigger range, use it
26202622
if ((this.endDate) && (this.endDate.compare(aRangeEnd) > 0)) {

0 commit comments

Comments
 (0)
Please sign in to comment.