diff --git a/ui/calendar.js b/ui/calendar.js index 8a5a1e8ad..ab4733653 100644 --- a/ui/calendar.js +++ b/ui/calendar.js @@ -414,11 +414,7 @@ return $.widget( "ui.calendar", { _select: function( event, time ) { this._setOption( "value", new Date( time ) ); - this._trigger( "select", event, { - - // TODO Replace with value option to initialise and read - date: this.value() - }); + this._trigger( "select", event ); }, value: function( value ) { diff --git a/ui/datepicker.js b/ui/datepicker.js index 988775452..cc7567363 100644 --- a/ui/datepicker.js +++ b/ui/datepicker.js @@ -98,11 +98,11 @@ $.widget( "ui.datepicker", { numberOfMonths: this.options.numberOfMonths, showWeek: this.options.showWeek, value: this._getParsedValue(), - select: function( event, data ) { - that.element.val( data.date ); + select: function( event ) { + that.element.val( that.calendarInstance.value() ); that.close(); that._focusTrigger(); - that._trigger( "select", event, data); + that._trigger( "select", event ); } }) .calendar( "instance" );