You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transitions stop working if exception thrown in tween #2415
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.)
(This was sort-of fixed by d3/d3-timer#4d3/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.)
Activity
avoid d3.timer from "crashing" due to thrown exceptions (see d3#2415)
prevent transition logic from getting into infinite loop(s) if except…
mbostock commentedon Jul 14, 2016
Superseded by d3/d3-transition#48.
mbostock commentedon Jul 14, 2016
(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.)
mbostock commentedon Aug 25, 2016
Related d3/d3-transition@c066c7c.