8000 Fix parseDateTimeInternal() bug. The parsers returned false. The func… · frosty22/jQuery-Timepicker-Addon@c264915 · GitHub
Skip to content

Commit c264915

Browse files
committed
Fix parseDateTimeInternal() bug. The parsers returned false. The function tested for null with typed equality. Changed to test for falsiness.
1 parent 1cc967a commit c264915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1884,7 +1884,7 @@
18841884
var timeString = splitRes[1],
18851885
parsedTime = $.datepicker.parseTime(timeFormat, timeString, timeSettings);
18861886

1887-
if (parsedTime === null) {
1887+
if (!parsedTime) {
18881888
throw 'Wrong time format';
18891889
}
18901890
return {

0 commit comments

Comments
 (0)