Using beforeShowDay with addDates() -- conflict?
Hi, I'm using MDP's addDates() method to pre-select a number of dates, and I'm also using dp's standard beforeShowDay callback to set custom css classes on certain dates (not necessarily the selected ones). I've found that if the declaration of the beforeShowDay function comes AFTER the addDates operation, both seem to work together. But, if addDates (or addDisabledDates for that matter) takes place AFTER the beforeShowDay setting, all the special date CSS td class assignments performed by beforeShowDay are lost (no longer present, from inspection) -- as if addDates() resets the classes of all days, whether selected or not. I need addDates to run at various times based on user input, and need the beforeShowDay to run at initial render, so this is a problem (of course I could continually re-declare the beforeShowDay function in the options after every addDates operation, but that's not a great approach.. Wondering if I'm missing something or if this is just one of the possible conflicts with the standard dp callbacks that are vaguely mentioned as possible in the docs page?
UPDATE: the problem seems to be more general -- seems that running addDates eliminates/resets many option settings and callback definitions -- all the functions I set up in options for onSelect event and other events no longer run after an addDates() is performed. The design assumption seems to be that no one would use addDates after setting their picker callback options? If I re-execute my options declarations I get the functionality back.