@@ -416,7 +416,7 @@ plots.supplyDefaults = function(gd) {
416416 newData = gd . data || [ ] ,
417417 modules = gd . _modules = [ ] ;
418418
419- var i , trace , fullTrace , module , axList , ax ;
419+ var i , trace , fullTrace , _module , axList , ax ;
420420
421421
422422 // first fill in what we can of layout without looking at data
@@ -441,14 +441,14 @@ plots.supplyDefaults = function(gd) {
441441 else if ( plots . traceIs ( fullTrace , 'gl2d' ) ) newFullLayout . _hasGL2D = true ;
442442 else if ( 'r' in fullTrace ) newFullLayout . _hasPolar = true ;
443443
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 ) ;
446446 }
447447
448448 // special cases that introduce interactions between traces
449449 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 ) ;
452452 }
453453
454454 if ( oldFullData . length === newData . length ) {
@@ -563,7 +563,7 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
563563 traceOut . index = i ;
564564 var visible = coerce ( 'visible' ) ,
565565 scene ,
566- module ;
566+ _module ;
567567
568568 coerce ( 'type' ) ;
569569 coerce ( 'uid' ) ;
@@ -577,14 +577,14 @@ plots.supplyDataDefaults = function(traceIn, i, layout) {
577577 // module-specific attributes --- note: we need to send a trace into
578578 // the 3D modules to have it removed from the webgl context.
579579 if ( visible || scene ) {
580- module = plots . getModule ( traceOut ) ;
581- traceOut . _module = module ;
580+ _module = plots . getModule ( traceOut ) ;
581+ traceOut . _module = _module ;
582582 }
583583
584584 // gets overwritten in pie and geo
585585 if ( visible ) coerce ( 'hoverinfo' , ( layout . _dataLength === 1 ) ? 'x+y+z+text' : undefined ) ;
586586
587- if ( module && visible ) module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
587+ if ( _module && visible ) _module . supplyDefaults ( traceIn , traceOut , defaultColor , layout ) ;
588588
589589 if ( visible ) {
590590 coerce ( 'name' , 'trace ' + i ) ;
0 commit comments