Repository navigation
Conversation
| @@ -148,7 +147,7 @@ export function uiPopover(klass) { | |||
| popoverSelection.classed('fade', true); | |||
There was a problem hiding this comment.
popoverSelection.classed('fade', true);, together with var animate = _animation; and var _animation = false; looks like a dead code
probably as followup PR
There was a problem hiding this comment.
first if (animate) { look like it is never entered, second that classing as fade seems to have no possible effect
There was a problem hiding this comment.
good spotting yeah ur right
1975d12 to
f93ab96
Compare
f93ab96 to
868a1c6
Compare
I guess that to review this PR I also need to check whether places getting literal now are always using it as a literal including potentially from outside, or maybe it is safe to assume that _ convention for internal-only is respected? |
|
yes unfortuantely this one is a pain to review. TypeScript proved that it works in the branch where this file is already converted to TS, and this PR is just cherrypicking the relevant lines from that branch |
|
btw: the functor logic had already been causing issues in the past when refactoring some of the UI text rendering from (html) strings to d3 callback functions, which were easily confused by the code for functors. 🙈 so definitely a big 👍 from my side to get rid of this for good. the extra |
utilFunctoris a bit too cunning for typescript to understand. while it might be handy for a method to accept bothxand() => x, we don't actually make use of this ability. For each method, we pass a literal 100% of the time, or a function 100% of the time.imo getting rid of
x = _x.apply(this, arguments)also makes it easier to understand what's going on. in many cases theargumentsandthisthat were being forwarded we not actually being used.