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
This bit me when I was feeding an explicit tick spec of an axis to the underlying scale of the axis to get tick values from the scale to manipulate and then feed back to the axis. scale.ticks did not like the Arguments object, giving me [].
The problem is this line in axis.ticks:
tickArguments_ = arguments;
That line should probably look or at least behave like this:
In any case, an invocation's arguments object shouldn't be exposed to its callers.
The text was updated successfully, but these errors were encountered:
rummelsworth
changed the title
axis.ticks() returns non-Array after axis.ticks(count)
axis.ticks() returns Arguments object after axis.ticks(count)
May 11, 2015
This bit me when I was feeding an explicit tick spec of an axis to the underlying scale of the axis to get tick values from the scale to manipulate and then feed back to the axis.
scale.ticks
did not like theArguments
object, giving me[]
.The problem is this line in
axis.ticks
:That line should probably look or at least behave like this:
In any case, an invocation's
arguments
object shouldn't be exposed to its callers.The text was updated successfully, but these errors were encountered: