Datepicker: Rename select() method to _select()

Make `select()` a private method as it's not part of the specification.
This commit is contained in:
Felix Nagel 2014-04-26 13:30:09 +02:00 committed by Scott González
parent cfea8df90a
commit f28b70eb7a

View File

@ -84,7 +84,7 @@ $.widget( "ui.datepicker", {
}, },
"click .ui-datepicker-current": function( event ) { "click .ui-datepicker-current": function( event ) {
event.preventDefault(); event.preventDefault();
this.select( event, new Date().getTime() ); this._select( event, new Date().getTime() );
}, },
"click .ui-datepicker-close": function( event ) { "click .ui-datepicker-close": function( event ) {
event.preventDefault(); event.preventDefault();
@ -94,7 +94,7 @@ $.widget( "ui.datepicker", {
event.preventDefault(); event.preventDefault();
// TODO exclude clicks on lead days or handle them correctly // TODO exclude clicks on lead days or handle them correctly
// TODO store/read more then just date, also required for multi month picker // 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 ) { if ( this.inline ) {
this.grid.focus(); this.grid.focus();
} }
@ -660,7 +660,7 @@ $.widget( "ui.datepicker", {
}, this.options.position ); }, this.options.position );
}, },
select: function( event, time ) { _select: function( event, time ) {
this.date.setTime( time ).select(); this.date.setTime( time ).select();
this.refresh(); this.refresh();
if ( !this.inline ) { if ( !this.inline ) {