Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

ngAnimate + $$RAFProvider : crashes when browser doesn't support requestAnimationFrame or is prefixed with 'moz' #6535

Closed
@atomrc

Description

@atomrc

The RAFProvider is adding a supported property to indicate whether the browser supports or not the requestAnimationFrame (see

raf.supported = !!requestAnimationFrame;
) but the ngAnimate doesn't check this property before using it (see https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L261).

I would be happy to make a pull request on this but my question is :
is it best to add a fallback on a timeout directly in the RAFProvider or to check for the supportedproperty every time it is used ?

I think just adding the mozRequestAnimationFrame would be a good start.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions