Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4: .maxDate() returns TypeError: options.maxDate.clone is not a function #742

Closed
bjoe2k4 opened this issue Jan 15, 2015 · 3 comments
Closed

Comments

@bjoe2k4
Copy link

bjoe2k4 commented Jan 15, 2015

when the functions picker.minDate and picker.maxDate are called without argument, a check for existance is missing:

minDate, maxDate line 1256, 1283:
return options.minDate.clone();

This should be done like here:

defaultDate, line 1310
return options.defaultDate ? options.defaultDate.clone() : options.defaultDate;

sorry for no jsfiddle, but this is quite obvious.

@Eonasdan
Copy link
Owner

I'll get it fixed. Thanks

Eonasdan added a commit that referenced this issue Jan 18, 2015
@Eonasdan
Copy link
Owner

Please check the latest, it should be fixed

@bjoe2k4
Copy link
Author

bjoe2k4 commented Jan 19, 2015

It's fixed, thx!

@bjoe2k4 bjoe2k4 closed this as completed Jan 19, 2015
@ghost ghost locked and limited conversation to collaborators Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants