Skip to content

Possible bug in core.helpers.cancelAnimFrame #3570

Closed

Description

@johnman

Hi,

After trying to quickly port your project to Typescript to see if I could generate a dts definition file (there are a few but they seem out of date), Typescript pointed to line 692 of core.helpers.js

return window.clearTimeout(callback, 1000 / 60);

clearTimeout doesn't support passing a callback.

Thanks,

John

p.s. Would there be any interest in moving to Typescript (plugins could still be vanilla js etc)?

Activity

  1. simonbrunel commented on Nov 8, 2016

    @simonbrunel
    Member

    It seems that this method is never called (can't find any references). You right, the code is not correct but I don't think there is any bug here: callback is the request id and 1000/60 is simply ignored. We should cleanup that code though.

  2. added this to the Version 2.5 milestone on Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions