Skip to content

Commit

Permalink
Removed breaking change (new DR objects)
Browse files Browse the repository at this point in the history
  • Loading branch information
TristanJM committed Jan 19, 2018
1 parent 99714f4 commit 6a6a35c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/moment-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export class DateRange {
return null;
}
else if ((point > otherStart) && (point < otherEnd)) {
return new this.constructor(start, end);
return this;
}
}
else if (isOtherZeroLength) {
Expand All @@ -177,7 +177,7 @@ export class DateRange {
return null;
}
else if ((point > start) && (point < end)) {
return new this.constructor(otherStart, otherEnd);
return other;
}
}

Expand Down

0 comments on commit 6a6a35c

Please sign in to comment.