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

Make Chart.helpers importable #4479

Merged
merged 1 commit into from
Jul 15, 2017

Conversation

simonbrunel
Copy link
Member

Properly export helpers and remove dependencies to Chart.helpers. Helpers can now be accessed by importing helpers.js (var helpers = require('path/to/helpers.js'), instead of var helpers = Chart.helpers).

Relates to #4478

Properly export helpers and remove dependencies to `Chart.helpers`. Helpers can now be accessed from `src/helpers/index.js` (`var helpers = require('path/to/helpers/index')`, instead of `var helpers = Chart.helpers`).
@simonbrunel
Copy link
Member Author

Rebased on master and move src/helpers.js to src/helpers/index.js

@simonbrunel simonbrunel merged commit 717e8d9 into chartjs:master Jul 15, 2017
@simonbrunel simonbrunel deleted the helpers-modules branch July 15, 2017 13:13
yofreke pushed a commit to yofreke/Chart.js that referenced this pull request Dec 30, 2017
Properly export helpers and remove dependencies to `Chart.helpers`. Helpers can now be accessed from `src/helpers/index.js` (`var helpers = require('path/to/helpers/index')`, instead of `var helpers = Chart.helpers`).
exwm pushed a commit to exwm/Chart.js that referenced this pull request Apr 30, 2021
Properly export helpers and remove dependencies to `Chart.helpers`. Helpers can now be accessed from `src/helpers/index.js` (`var helpers = require('path/to/helpers/index')`, instead of `var helpers = Chart.helpers`).
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.

None yet

2 participants