I have a page with different controls
one of them is plain jQuery datePicker $('elem1').datepicker();
If I click 'Today' button it fails in $.datepicker._gotoToday method because tp_inst is undefined in that case.
Additional check for that case should be added.
Regards,