jonthornton/jquery-timepicker

Error: Cannot read property 'length' of undefined

harryy2510 opened this issue · 1 comments

Hi,
This error occurred after upgrading to latest version.

image

When I checked for the source of error, found this
image

if (settings.disableTimeRanges.length > 0) {

I think before checking the length should we check if disabledTimes is even defined? I was passing props from parent and it passed undefined to the timepicker

Closed by f78442f. Thanks for reporting this!