Refactor selectDate event and add new one triggered after date is selected but before popup is closed.
Refactor selectDate event and add new one triggered after
date is selected but before popup is closed.

kgiszczak/datepicker