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

Change valueAtIndexOrDefault behavior #4423

Merged
merged 1 commit into from
Jun 25, 2017

Conversation

simonbrunel
Copy link
Member

For consistency with valueOrDefault, valueAtIndexOrDefault now returns null if value (expected array) is null. Also get rid of the superfluous get prefix in getValueOrDefault and getValueAtIndexOrDefault.

For consistency with `valueOrDefault`, `valueAtIndexOrDefault` now returns null if `value` (expected array) is null. Also get rid of the superfluous `get` prefix in `getValueOrDefault` and `getValueAtIndexOrDefault`.
@simonbrunel simonbrunel added this to the Version 2.7 milestone Jun 24, 2017
@simonbrunel simonbrunel requested a review from etimberg June 24, 2017 20:35
@simonbrunel simonbrunel merged commit 5d95280 into chartjs:master Jun 25, 2017
@simonbrunel simonbrunel deleted the helpers-rename branch June 25, 2017 08:54
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
For consistency with `valueOrDefault`, `valueAtIndexOrDefault` now returns null if `value` (expected array) is null. Also get rid of the superfluous `get` prefix in `getValueOrDefault` and `getValueAtIndexOrDefault`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants