objectivehtml / FlipClock

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

FlipClock.start() strange behaviour #119

Closed gobwas closed 10 years ago

gobwas commented 10 years ago

I used FlipClock this way:

var clock = new FlipClock($el, { countdown: true, autoStart: false, clockFace: "MinuteCounter" });

clock.setTime(59);
setTimeout(function() {
    clock.start();
}, 1000);

And there is two problems:

upd. About problems:

Is it a bug?

gobwas commented 10 years ago

upd. Also, i was installed it via bower as FlipClock.

shodaburp commented 10 years ago

Hi @gobwas ! Thank you for the fix!

I've been trying to figure out how to use your patch but I can't seem to understand how to apply it.

Currently, I'm using an example from 'examples' folder which only calls one js file and that is: flipclock.js I don't see face.js being called anywhere = /

Could you kindly provide a guide on how to use it, please? Thank you!

shodaburp commented 10 years ago

I end up modifying flipclock.js to follow your fix >.< Temp solution I suppose.

gobwas commented 10 years ago

Hi @shodaburp! Does your last comment mean that you applyed fix successfully? My pull request is not temp solution I think, but things about class Face modification is a question of community, i did not implemented it like pull request, but used this idea in my project, where Im using FlipClock =)

shodaburp commented 10 years ago

@gobwas I replaced the few lines you added in face.js into flipclock.js and it works.

objectivehtml commented 10 years ago

This example is working from what I can tell in the latest build (0.6.0).