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

Commit 7c785ce

Browse files
authored
Merge pull request #278 from jpchavat/master
date-enabled-dates should work even if the list of dates is empty, disabling all the dates
2 parents 791b3d5 + fb71e7c commit 7c785ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/js/angular-datepicker.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,8 +809,7 @@
809809
}
810810
}
811811

812-
if (dateEnabledDates &&
813-
dateEnabledDates.length > 0) {
812+
if (dateEnabledDates) {
814813

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

0 commit comments

Comments
 (0)