@@ -416,7 +416,7 @@ plots.supplyDefaults = function(gd) {
416
416
newData = gd . data || [ ] ,
417
417
modules = gd . _modules = [ ] ;
418
418
419
- var i , trace , fullTrace , module , axList , ax ;
419
+ var i , trace , fullTrace , _module , axList , ax ;
420
420
421
421
422
422
// first fill in what we can of layout without looking at data
@@ -441,14 +441,14 @@ plots.supplyDefaults = function(gd) {
441
441
else if ( plots . traceIs ( fullTrace , 'gl2d' ) ) newFullLayout . _hasGL2D = true ;
442
442
else if ( 'r' in fullTrace ) newFullLayout . _hasPolar = true ;
443
443
444
- module = fullTrace . _module ;
445
- if ( module && modules . indexOf ( module ) === - 1 ) modules . push ( module ) ;
444
+ _module = fullTrace . _module ;
445
+ if ( _module && modules . indexOf ( _module ) === - 1 ) modules . push ( _module ) ;
446
446
}
447
447
448
448
// special cases that introduce interactions between traces
449
449
for ( i = 0 ; i < modules . length ; i ++ ) {
450
- module = modules [ i ] ;
451
- if ( module . cleanData ) module . cleanData ( newFullData ) ;
450
+ _module = modules [ i ] ;
451
+ if ( _module . cleanData ) _module . cleanData ( newFullData ) ;
452
452
}
453
453
454
454
if ( oldFullData . length === newData . length ) {
@@ -563,7 +563,7 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
563
563
traceOut . index = i ;
564
564
var visible = coerce ( 'visible' ) ,
565
565
scene ,
566
- module ;
566
+ _module ;
567
567
568
568
coerce ( 'type' ) ;
569
569
coerce ( 'uid' ) ;
@@ -577,14 +577,14 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
577
577
// module-specific attributes --- note: we need to send a trace into
578
578
// the 3D modules to have it removed from the webgl context.
579
579
if ( visible || scene ) {
580
- module = plots . getModule ( traceOut ) ;
581
- traceOut . _module = module ;
580
+ _module = plots . getModule ( traceOut ) ;
581
+ traceOut . _module = _module ;
582
582
}
583
583
584
584
// gets overwritten in pie and geo
585
585
if ( visible ) coerce ( 'hoverinfo' , ( layout . _dataLength === 1 ) ? 'x+y+z+text' : undefined ) ;
586
586
587
- if ( module && visible ) module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
587
+ if ( _module && visible ) _module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
588
588
589
589
if ( visible ) {
590
590
coerce ( 'name' , 'trace ' + i ) ;
0 commit comments