Issue:
index.toLowerCase() within the localize method for the FlipClock.Factory class throws a JS error when attempting to create a new TwelveHourClock face instance.
Recreate:
var clock = $('.current-clock').FlipClock({clockFace: 'TwelveHourClock'});
Error thrown:
Uncaught TypeError: Cannot call method 'toLowerCase' of undefined
Possible Fix:
Change: var lindex = index.toLowerCase(); to var lindex = index ? index.toLowerCase() : '';
Issue: index.toLowerCase() within the localize method for the FlipClock.Factory class throws a JS error when attempting to create a new TwelveHourClock face instance.
Recreate: var clock = $('.current-clock').FlipClock({clockFace: 'TwelveHourClock'});
Error thrown: Uncaught TypeError: Cannot call method 'toLowerCase' of undefined
Possible Fix: Change: var lindex = index.toLowerCase(); to var lindex = index ? index.toLowerCase() : '';