added possibility to pass array to selectDate

This commit is contained in:
t1m0n 2016-05-16 11:53:50 +03:00
parent fa50bb70f1
commit 1adc70d3ff
3 changed files with 16 additions and 2 deletions

View File

@ -428,6 +428,13 @@
len = selectedDates.length,
newDate = '';
if (Array.isArray(date)) {
date.forEach(function (d) {
_this.selectDate(d)
});
return;
}
if (!(date instanceof Date)) return;
this.lastSelectedDate = date;

File diff suppressed because one or more lines are too long

View File

@ -428,6 +428,13 @@
len = selectedDates.length,
newDate = '';
if (Array.isArray(date)) {
date.forEach(function (d) {
_this.selectDate(d)
});
return;
}
if (!(date instanceof Date)) return;
this.lastSelectedDate = date;