addDates empty array issue
When im try to add empty array i have error:
Uncaught Error: Empty array of dates received.
at Function.error (jquery-2.2.4.min.js:4)
at HTMLDivElement.addDates (jquery-ui.multidatespicker.js:321)
at HTMLDivElement.init (jquery-ui.multidatespicker.js:165)
at HTMLDivElement.
I create an object with an empty dates array. and I need to show that the calendar is empty. is it possible to fill adddates with an empty array?
$.each(response,function(i,j) { dates.push(j.date); }); // some times dates array can be empty $('#datepicker').multiDatesPicker({ minDate: 0, addDates: dates })