File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,9 @@ export class Occurrence {
87
87
* If the occurrence has no reference date, an empty {@link Occurrence} will be returned.
88
88
*
89
89
* @param nextReferenceDate
90
- * @param dropScheduledDate - Optional boolean to drop the scheduled date from the next occurrence so long as a start or due date exists.
90
+ * @param removeScheduledDate - Optional boolean to remove the scheduled date from the next occurrence so long as a start or due date exists.
91
91
*/
92
- public next ( nextReferenceDate : Date , dropScheduledDate : boolean = false ) : Occurrence {
92
+ public next ( nextReferenceDate : Date , removeScheduledDate : boolean = false ) : Occurrence {
93
93
// Only if a reference date is given. A reference date will exist if at
94
94
// least one of the other dates is set.
95
95
if ( this . referenceDate === null ) {
@@ -103,7 +103,7 @@ export class Occurrence {
103
103
const hasStartDate = this . startDate !== null ;
104
104
const hasDueDate = this . dueDate !== null ;
105
105
const canDropScheduledDate = hasStartDate || hasDueDate ;
106
- const shouldDropScheduledDate = dropScheduledDate && canDropScheduledDate ;
106
+ const shouldDropScheduledDate = removeScheduledDate && canDropScheduledDate ;
107
107
108
108
const startDate = this . nextOccurrenceDate ( this . startDate , nextReferenceDate ) ;
109
109
const scheduledDate = shouldDropScheduledDate
You can’t perform that action at this time.
0 commit comments