bernii / gauge.js

100% native and cool looking JavaScript gauge
MIT License
1.42k stars 391 forks source link

window.requestAnimationFrame misspell #188

Open ricardosaumeth opened 6 years ago

ricardosaumeth commented 6 years ago

Hi there.

If you unminify the file, on line 22 inside the for loop, the word window is missing

t = null, s = 0, i = {}, ** requestAnimationFrame** ? window.cancelAnimationFrame 

it should be t = null, s = 0, i = {}, window.requestAnimationFrame ? window.cancelAnimationFrame

Thanks

kplindegaard commented 6 years ago

Strictly speaking you are correct, I guess. Luckily most browsers don't care and have requestAnimationFrame() exposed also on the global level.