objectivehtml / FlipClock

http://flipclockjs.com/
MIT License
2.74k stars 954 forks source link

get caller: function ThrowTypeError() { [native code] } #109

Closed toxsid closed 10 years ago

toxsid commented 10 years ago

When starting the countdown with the following code, the counter will show but not start counting down (only on page refresh):

var date = new Date(Date.UTC(2014, 6, 27, 12, 0, 0)); var now = new Date(); var diff = date.getTime()/1000 - now.getTime()/1000;

var clock = $('.clock').FlipClock(diff, { clockFace: 'DailyCounter', countdown: true });

image

toxsid commented 10 years ago

It appears to be a problem with the latest version. I found a 0.4 version and works perfectly.

objectivehtml commented 10 years ago

Thanks for the report. I was working on a number of changes over the weekend it appears to have broke a few things. I will get this fixed asap.

objectivehtml commented 10 years ago

This should be fixed now. I tested your code specifically and the clock is flipping now.

toxsid commented 10 years ago

Yes. This fix worked correctly, thank you.