Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix dereference undefined when calling cal.update()/cal.highlight() #270

Conversation

terencehonles
Copy link
Contributor

d3.data requires an array and in corner cases (the domain is not visible) the call this._domains.get(date) returns undefined. This PR updates the call to fall back to an empty array and not throw an exception.

fixes #96

``d3.data`` requires an array and in corner cases (the domain is not visible)
the call ``this._domains.get(date)`` returns undefined. This PR updates
the call to fall back to an empty array and not throw an exception.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 77.709% when pulling aaa835a on terencehonles:fix-d3.data-called-with-undefined-from-callback into 0b59462 on wa0x6e:master.

@wa0x6e
Copy link
Owner

wa0x6e commented Nov 7, 2022

Merged into v4

@wa0x6e wa0x6e closed this Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When I jumpTo and highlight afterwards i sometime get some error
3 participants