Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #57 from KevinOrtman/master

Making parseTime "safe" if an undefined timeVal is passed
  • Loading branch information...
commit 7b06d3386353510e4cdfd488fc3e0d6827e62122 2 parents 0c08b56 + c8d4eb6
@fgelinas authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  jquery.ui.timepicker.js
View
3  jquery.ui.timepicker.js
@@ -1140,6 +1140,9 @@
var retVal = new Object();
retVal.hours = -1;
retVal.minutes = -1;
+
+ if(!timeVal)
+ return '';
var timeSeparator = this._get(inst, 'timeSeparator'),
amPmText = this._get(inst, 'amPmText'),
Please sign in to comment.
Something went wrong with that request. Please try again.