Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 52884c2

Browse filesBrowse files
committed
require Register into plots.js, use it to match trace and module.
1 parent 8b7cc9b commit 52884c2
Copy full SHA for 52884c2

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/plots/plots.js

Copy file name to clipboardExpand all lines: src/plots/plots.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
480480
traceOut.index = i;
481481
var visible = coerce('visible'),
482482
scene,
483-
module;
483+
_module;
484484

485485
coerce('type');
486486
coerce('uid');
@@ -494,14 +494,14 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
494494
// module-specific attributes --- note: we need to send a trace into
495495
// the 3D modules to have it removed from the webgl context.
496496
if(visible || scene) {
497-
module = plots.getModule(traceOut);
498-
traceOut._module = module;
497+
_module = Registry.getModule(traceOut);
498+
traceOut._module = _module;
499499
}
500500

501501
// gets overwritten in pie and geo
502502
if(visible) coerce('hoverinfo', (layout._dataLength === 1) ? 'x+y+z+text' : undefined);
503503

504-
if(module && visible) module.supplyDefaults(traceIn, traceOut, defaultColor, layout);
504+
if(_module && visible) _module.supplyDefaults(traceIn, traceOut, defaultColor, layout);
505505

506506
if(visible) {
507507
coerce('name', 'trace ' + i);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.