From: Felix Nagel Date: Sat, 26 Apr 2014 11:30:09 +0000 (+0200) Subject: Datepicker: Rename `select()` method to `_select()` X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f28b70eb7a121bba06bb4043d97d4ee2d7d48fb6;p=jquery-ui.git Datepicker: Rename `select()` method to `_select()` Make `select()` a private method as it's not part of the specification. --- diff --git a/ui/datepicker.js b/ui/datepicker.js index 929138c79..2722c37b6 100644 --- a/ui/datepicker.js +++ b/ui/datepicker.js @@ -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 ) {