turuslan / HackTimer

MIT License
491 stars 93 forks source link

Cannot read property 'call' of undefined #1

Closed linkenmin closed 9 years ago

linkenmin commented 9 years ago

@line 51: callback.call (window);

It seldom happens to some people, I wonder why? And it's a great job, thank you very much.

turuslan commented 9 years ago

Thanks for reporting. My code does not check if your callback is valid function before calling it. So if callback you pass to setInterval and setTimeout are not functions my code will throw error.

I will fix it as soon as possible.

turuslan commented 9 years ago

I have fixed it. Check if it is working as expected, please.

linkenmin commented 9 years ago

Ok, I will keep monitoring it. Thank you again for your great work!