mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Datepicker: Rename select()
method to _select()
Make `select()` a private method as it's not part of the specification.
This commit is contained in:
parent
cfea8df90a
commit
f28b70eb7a
@ -84,7 +84,7 @@ $.widget( "ui.datepicker", {
|
||||
},
|
||||
"click .ui-datepicker-current": function( event ) {
|
||||
event.preventDefault();
|
||||
this.select( event, new Date().getTime() );
|
||||
this._select( event, new Date().getTime() );
|
||||
},
|
||||
"click .ui-datepicker-close": function( event ) {
|
||||
event.preventDefault();
|
||||
@ -94,7 +94,7 @@ $.widget( "ui.datepicker", {
|
||||
event.preventDefault();
|
||||
// TODO exclude clicks on lead days or handle them correctly
|
||||
// TODO store/read more then just date, also required for multi month picker
|
||||
this.select( event, $( event.currentTarget ).data( "timestamp" ) );
|
||||
this._select( event, $( event.currentTarget ).data( "timestamp" ) );
|
||||
if ( this.inline ) {
|
||||
this.grid.focus();
|
||||
}
|
||||
@ -660,7 +660,7 @@ $.widget( "ui.datepicker", {
|
||||
}, this.options.position );
|
||||
},
|
||||
|
||||
select: function( event, time ) {
|
||||
_select: function( event, time ) {
|
||||
this.date.setTime( time ).select();
|
||||
this.refresh();
|
||||
if ( !this.inline ) {
|
||||
|
Loading…
Reference in New Issue
Block a user