Skip to content

Remove explict dependency on Pie module from plot routine #187

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

Merged
merged 5 commits into from
Jan 19, 2016

Conversation

etpinard
Copy link
Contributor

@mdtusz

I found a simple way to remove the explicit dependency on Pie in plot_api.js meaning that Pie won't have to be part of core module.

- not necessary but better for consistency while deconstructing
  the modules object.
- this didn't cause any errors, but is unnecessary.
@etpinard etpinard added this to the Modular plotly.js milestone Jan 15, 2016
if(cdPie.length) Pie.plot(gd, cdPie);
// now draw stuff not on subplots (ie, only pies at the moment)
if(fullLayout._hasPie) {
var Pie = Plots.modules.pie._module;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we maybe use Plots.getModule('pie') here instead for the sake of uniform access?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. Thanks!

@mdtusz
Copy link
Contributor

mdtusz commented Jan 19, 2016

💃

etpinard added a commit that referenced this pull request Jan 19, 2016
Remove explict dependency on Pie module from plot routine
@etpinard etpinard merged commit 0366caa into master Jan 19, 2016
@etpinard etpinard deleted the rm-Pie-from-plot-routine branch January 19, 2016 17:41
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.

4 participants