Skip to content

Commit

Permalink
Move getValidValue() outside of checkAndSetDefaultValue() function
Browse files Browse the repository at this point in the history
  • Loading branch information
holtkamp committed Mar 7, 2016
1 parent 8178c6d commit 7912d1a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions jquery.daterangepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1089,17 +1089,17 @@
}

initiated = true;

function getValidValue(date, format, locale) {
if (moment(date, format, locale).isValid()) {
return moment(date, format, locale).toDate();
} else {
return moment().toDate()
}
}
}
}

function getValidValue(date, format, locale) {
if (moment(date, format, locale).isValid()) {
return moment(date, format, locale).toDate();
} else {
return moment().toDate()
}
}

function updateCalendarWidth()
{
var gapMargin = box.find('.gap').css('margin-left');
Expand Down

0 comments on commit 7912d1a

Please sign in to comment.