Skip to content

Transitions stop working if exception thrown in tween #2415

Closed

Description

@natevw

If a tween throws an exception for whatever reason, transitions stop working until the page is refreshed.

The actual problem [besides the code throwing exceptions, of course…] is ± in the d3.timer implementation, however it appears that the transition code is overriding some of that internal mechanism and may also need handling for this.

(I'm generally loath to add too much coddling against "operator error", apart from throwing informative assertions, but in a case of a global handler like this it seems like something that should be fixed. Otherwise any single buggy/careless "user" of d3.timer can break it globally for all the others within the page.)

Activity

  1. added
    bug
    on Oct 21, 2015
  2. modified the milestones: Icebox, 4.0 on Oct 21, 2015
  3. mbostock commented on Jul 14, 2016

    @mbostock
    Member

    Superseded by d3/d3-transition#48.

  4. mbostock commented on Jul 14, 2016

    @mbostock
    Member

    (This was sort-of fixed by d3/d3-timer#4 d3/d3-timer#8, in that timers now have well-defined behavior if an error is thrown. But transitions do not yet have well-defined behavior if an error is thrown.)

  5. mbostock commented on Aug 25, 2016

    @mbostock
    Member
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions