Skip to content

Commit 7edbf53

Browse files
committed
uses moment().clone() instead of _.clone
1 parent 01e0089 commit 7edbf53

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DateTimePickerDays.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ DateTimePickerDays = React.createClass({
2626
prevMonth = this.props.viewDate.clone().subtract("months", 1);
2727
days = prevMonth.daysInMonth();
2828
prevMonth.date(days).startOf('week');
29-
nextMonth = _.clone(moment(prevMonth)).add(42, "d");
29+
nextMonth = moment(prevMonth).clone().add(42, "d");
3030
html = [];
3131
cells = [];
3232
while (prevMonth.isBefore(nextMonth)) {

src/coffee/DateTimePickerDays.jsx.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DateTimePickerDays = React.createClass(
2525
days = prevMonth.daysInMonth()
2626
prevMonth.date(days).startOf('week')
2727

28-
nextMonth = _.clone(moment(prevMonth)).add(42, "d")
28+
nextMonth = moment(prevMonth).clone().add(42, "d")
2929

3030
html = []
3131
cells = []

0 commit comments

Comments
 (0)