picker.setDisabledDates = function (dates) {
                    picker.options.disabledDates = indexGivenDates(dates);
                    if (picker.viewDate) update();
                },