Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Commit

Permalink
date-enabled-dates should work even if the list of dates is empty, di…
Browse files Browse the repository at this point in the history
…sabling all the dates
  • Loading branch information
jpchavat committed Jun 28, 2017
1 parent 791b3d5 commit fb71e7c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/js/angular-datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,7 @@
}
}

if (dateEnabledDates &&
dateEnabledDates.length > 0) {
if (dateEnabledDates) {

for (i; i <= dateEnabledDates.length; i += 1) {

Expand Down

0 comments on commit fb71e7c

Please sign in to comment.