It looks like requestAnimationFrame() is defined globally, but not on the
window object, in w3c_anim_timing.js.

You should be able to define Window.prototype.requestAnimationFrame in
missing.js. That should make it available on the window object.

Any time you need to add something to missing.js, it's a good idea to open
a pull request for Google's externs. Window.prototype.requestAnimationFrame
should probably be defined here too:

https://github.com/google/closure-compiler/blob/master/externs/browser/w3c_anim_timing.js

- Josh

On Sun, Mar 5, 2017 at 1:14 AM, Harbs <harbs.li...@gmail.com> wrote:

> For some reason window.requestAnimationFrame and
> window.cancelAnimationFrame is not recognized. Is that missing from the
> externs for some reason?
>
> Thanks,
> Harbs

Reply via email to