From fb71e7cfc92c5828e0691e820c3b6d9684fb3012 Mon Sep 17 00:00:00 2001 From: Jp Chavat Date: Tue, 27 Jun 2017 22:08:44 -0300 Subject: [PATCH] date-enabled-dates should work even if the list of dates is empty, disabling all the dates --- src/js/angular-datepicker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/js/angular-datepicker.js b/src/js/angular-datepicker.js index d2abeb0..971dbc9 100644 --- a/src/js/angular-datepicker.js +++ b/src/js/angular-datepicker.js @@ -809,8 +809,7 @@ } } - if (dateEnabledDates && - dateEnabledDates.length > 0) { + if (dateEnabledDates) { for (i; i <= dateEnabledDates.length; i += 1) {