Skip to content

Commit 29e0098

Browse files
committed
Calendar: Remove select callback reference
1 parent cda5cdd commit 29e0098

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

ui/calendar.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,7 @@ return $.widget( "ui.calendar", {
420420

421421
_select: function( event, time ) {
422422
this._setOption( "value", new Date( time ) );
423-
this._trigger( "select", event, {
424-
// TODO Replace with value option to initialise and read
425-
date: this.value()
426-
});
423+
this._trigger( "select", event );
427424
},
428425

429426
value: function( value ) {

ui/datepicker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ $.widget( "ui.datepicker", {
9090
numberOfMonths: this.options.numberOfMonths,
9191
showWeek: this.options.showWeek,
9292
value: this._getParsedValue(),
93-
select: function( event, data ) {
94-
that.element.val( data.date );
93+
select: function( event ) {
94+
that.element.val( that.calendarInstance.value() );
9595
that.close();
9696
that._focusTrigger();
97-
that._trigger( "select", event, data);
97+
that._trigger( "select", event );
9898
}
9999
})
100100
.calendar( "instance" );

0 commit comments

Comments
 (0)