trentrichardson / jQuery-Timepicker-Addon

Adds a timepicker to jQueryUI Datepicker
http://trentrichardson.com/examples/timepicker/
MIT License
2.66k stars 1.05k forks source link

Different "inst" types in onSelect callback #734

Open rgm3 opened 10 years ago

rgm3 commented 10 years ago

When moving the slider, a TimePicker object is used as the "inst" argument for the onSelect callback. When clicking a date, a different type of object is returned (it seems equivalent to TimePicker.inst).

This makes getting the javascript Date object out of the "inst" function argument tricky.