runspired / ember-run-raf

Use requestAnimationFrame with Backburner
MIT License
26 stars 15 forks source link

Prevent clearTimeout from throwing an illegal invocation TypeError #10

Closed sha closed 8 years ago

sha commented 8 years ago

ember-run-raf/utils/clear-timeout exports the clearTimeout function without binding it to the global scope. However, both ember-run-raf/utils/raf's clearFrame and ember-run-raf/utils/set-timeout-override's clearTimeout call nativeClearTimeout without a context, which causes a TypeError to be thrown.

discorick commented 8 years ago

Just got hit with the illegal invocation error today while using smoke-and-mirrors. Would be great to get this merged!