Skip to content

Commit 54b6e2f

Browse files
committed
Calendar: Remove select callback reference
1 parent ca654c5 commit 54b6e2f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

ui/calendar.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -414,11 +414,7 @@ return $.widget( "ui.calendar", {
414414

415415
_select: function( event, time ) {
416416
this._setOption( "value", new Date( time ) );
417-
this._trigger( "select", event, {
418-
419-
// TODO Replace with value option to initialise and read
420-
date: this.value()
421-
});
417+
this._trigger( "select", event );
422418
},
423419

424420
value: function( value ) {

ui/datepicker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ $.widget( "ui.datepicker", {
9393
numberOfMonths: this.options.numberOfMonths,
9494
showWeek: this.options.showWeek,
9595
value: this._getParsedValue(),
96-
select: function( event, data ) {
97-
that.element.val( data.date );
96+
select: function( event ) {
97+
that.element.val( that.calendarInstance.value() );
9898
that.close();
9999
that._focusTrigger();
100-
that._trigger( "select", event, data);
100+
that._trigger( "select", event );
101101
}
102102
})
103103
.calendar( "instance" );

0 commit comments

Comments
 (0)