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

Commit

Permalink
Merge pull request #278 from jpchavat/master
Browse files Browse the repository at this point in the history
date-enabled-dates should work even if the list of dates is empty, disabling all the dates
  • Loading branch information
45kb authored Jun 28, 2017
2 parents 791b3d5 + fb71e7c commit 7c785ce
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 7c785ce

Please sign in to comment.