8000 ZERO circular dependency by etpinard · Pull Request #2429 · plotly/plotly.js · GitHub
[go: up one dir, main page]

Skip to content

ZERO circular dependency #2429

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 17 commits into from
Mar 2, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use Registry.traceIs instead of plots.traceIs copy
  • Loading branch information
etpinard committed Mar 1, 2018
commit ed8d56daaed2f07e4d48bfd999cc91403a64b1f3
6 changes: 3 additions & 3 deletions src/plots/plots.js
Original file line number Diff line number Diff line change
Expand Up @@ -1109,7 +1109,7 @@ plots.supplyTraceDefaults = function(traceIn, colorIndex, layout, traceInIndex)
coerce('customdata');
coerce('ids');

if(plots.traceIs(traceOut, 'showLegend')) {
if(Registry.traceIs(traceOut, 'showLegend')) {
coerce('showlegend');
coerce('legendgroup');
}
Expand All @@ -1126,9 +1126,9 @@ plots.supplyTraceDefaults = function(traceIn, colorIndex, layout, traceInIndex)
Lib.coerceHoverinfo(traceIn, traceOut, layout);
}

if(!plots.traceIs(traceOut, 'noOpacity')) coerce('opacity');
if(!Registry.traceIs(traceOut, 'noOpacity')) coerce('opacity');

if(plots.traceIs(traceOut, 'notLegendIsolatable')) {
if(Registry.traceIs(traceOut, 'notLegendIsolatable')) {
// This clears out the legendonly state for traces like carpet that
// cannot be isolated in the legend
traceOut.visible = !!traceOut.visible;
Expand Down
0