pickadate.js does not support strict mode
pickadate.js has problems with minificators because of undefined variable namesCount assignment:
https://github.com/amsul/pickadate.js/blob/master/lib/picker.js#L540
for ( i = 0, namesCount = names.length; i < namesCount; i += 1 ) {
should be
for ( i = 0; i < names.length; i++ ) {
@DanielRuf seems like a simple fix to just add namesCount to the var declared above :)
Theoretically i and namesCount should both use var (in the head of the loop).
i is already there though. So namesCount is the only problem as it is
Sure but it is normally better to move them into the head of the loop (imo).
@DanielRuf true..it's just super old code. Feel free to fix it as you see fit.