Skip to content

Commit 5331afd

Browse files
committed
Fixed a couple of issues highlighted by intentions and fixed the jsdoc syntax.
1 parent 9ce4809 commit 5331afd

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@
675675
var hourMax = parseInt((this._defaults.hourMax - ((this._defaults.hourMax - this._defaults.hourMin) % this._defaults.stepHour)), 10),
676676
minMax = parseInt((this._defaults.minuteMax - ((this._defaults.minuteMax - this._defaults.minuteMin) % this._defaults.stepMinute)), 10),
677677
secMax = parseInt((this._defaults.secondMax - ((this._defaults.secondMax - this._defaults.secondMin) % this._defaults.stepSecond)), 10),
678-
millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10);
678+
millisecMax = parseInt((this._defaults.millisecMax - ((this._defaults.millisecMax - this._defaults.millisecMin) % this._defaults.stepMillisec)), 10),
679679
microsecMax = parseInt((this._defaults.microsecMax - ((this._defaults.microsecMax - this._defaults.microsecMin) % this._defaults.stepMicrosec)), 10);
680680

681681
if (this.hour_slider) {
@@ -1917,9 +1917,9 @@
19171917

19181918
/**
19191919
* Get the timezone offset as string from a date object (eg '+0530' for UTC+5.5)
1920-
* @param number if not a number this value is returned
1921-
* @param boolean if true formats in accordance to iso8601 "+12:45"
1922-
* @return string
1920+
* @param {number} tzMinutes if not a number this value is returned
1921+
* @param {boolean} iso8601 if true formats in accordance to iso8601 "+12:45"
1922+
* @return {string}
19231923
*/
19241924
$.timepicker.timezoneOffsetString = function(tzMinutes, iso8601) {
19251925
if(isNaN(tzMinutes) || tzMinutes > 840){
@@ -1940,8 +1940,8 @@
19401940

19411941
/**
19421942
* Get the number in minutes that represents a timezone string
1943-
* @param string formated like "+0500", "-1245"
1944-
* @return number
1943+
* @param {string} tzString formatted like "+0500", "-1245"
1944+
* @return {number}
19451945
*/
19461946
$.timepicker.timezoneOffsetNumber = function(tzString) {
19471947
tzString = tzString.toString().replace(':',''); // excuse any iso8601, end up with "+1245"
@@ -1961,8 +1961,8 @@
19611961

19621962
/**
19631963
* No way to set timezone in js Date, so we must adjust the minutes to compensate. (think setDate, getDate)
1964-
* @param date
1965-
* @param string formated like "+0500", "-1245"
1964+
* @param {date} date
1965+
* @param {string} toTimezone formatted like "+0500", "-1245"
19661966
* @return date
19671967
*/
19681968
$.timepicker.timezoneAdjust = function(date, toTimezone) {
@@ -1977,10 +1977,10 @@
19771977
* Calls `timepicker()` on the `startTime` and `endTime` elements, and configures them to
19781978
* enforce date range limits.
19791979
* n.b. The input value must be correctly formatted (reformatting is not supported)
1980-
* @param Element startTime
1981-
* @param Element endTime
1982-
* @param obj options Options for the timepicker() call
1983-
* @return jQuery
1980+
* @param {Element} startTime
1981+
* @param {Element} endTime
1982+
* @param {object} options Options for the timepicker() call
1983+
* @return {jQuery}
19841984
*/
19851985
$.timepicker.timeRange = function(startTime, endTime, options) {
19861986
return $.timepicker.handleRange('timepicker', startTime, endTime, options);
@@ -1989,9 +1989,9 @@
19891989
/**
19901990
* Calls `datetimepicker` on the `startTime` and `endTime` elements, and configures them to
19911991
* enforce date range limits.
1992-
* @param Element startTime
1993-
* @param Element endTime
1994-
* @param obj options Options for the `timepicker()` call. Also supports `reformat`,
1992+
* @param {Element} startTime
1993+
* @param {Element} endTime
1994+
* @param {object} options Options for the `timepicker()` call. Also supports `reformat`,
19951995
* a boolean value that can be used to reformat the input values to the `dateFormat`.
19961996
* @param string method Can be used to specify the type of picker to be added
19971997
* @return jQuery
@@ -2003,9 +2003,9 @@
20032003
/**
20042004
* Calls `method` on the `startTime` and `endTime` elements, and configures them to
20052005
* enforce date range limits.
2006-
* @param Element startTime
2007-
* @param Element endTime
2008-
* @param obj options Options for the `timepicker()` call. Also supports `reformat`,
2006+
* @param {Element} startTime
2007+
* @param {Element} endTime
2008+
* @param {object} options Options for the `timepicker()` call. Also supports `reformat`,
20092009
* a boolean value that can be used to reformat the input values to the `dateFormat`.
20102010
* @return jQuery
20112011
*/
@@ -2016,10 +2016,10 @@
20162016
/**
20172017
* Calls `method` on the `startTime` and `endTime` elements, and configures them to
20182018
* enforce date range limits.
2019-
* @param string method Can be used to specify the type of picker to be added
2020-
* @param Element startTime
2021-
* @param Element endTime
2022-
* @param obj options Options for the `timepicker()` call. Also supports `reformat`,
2019+
* @param {string} method Can be used to specify the type of picker to be added
2020+
* @param {Element} startTime
2021+
* @param {Element} endTime
2022+
* @param {object} options Options for the `timepicker()` call. Also supports `reformat`,
20232023
* a boolean value that can be used to reformat the input values to the `dateFormat`.
20242024
* @return jQuery
20252025
*/
@@ -2098,8 +2098,8 @@
20982098

20992099
/**
21002100
* Log error or data to the console during error or debugging
2101-
* @param Object err pass any type object to log to the console during error or debugging
2102-
* @return void
2101+
* @param {Object} err pass any type object to log to the console during error or debugging
2102+
* @return {void}
21032103
*/
21042104
$.timepicker.log = function(err){
21052105
if(window.console){

0 commit comments

Comments
 (0)