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

polyfill for cancelAnimationFrame is broken #326

@manolo

Description

@manolo

The pachTimer for AnimationFrame prevents animation requests to be cancelled.

This code does not write anything in console normally, but when angular2-polyfills.js is loaded, the callback is executed:

  var callback = function() {
    console.log("Done")
  }
  var i = window.requestAnimationFrame(callback);
  window.cancelAnimationFrame(i);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions