@@ -40,9 +40,9 @@ module.exports = function colorScaleDefaults(traceIn, traceOut, layout, coerce,
4040
4141 // handles both the trace case (autocolorscale is false by default) and
4242 // the marker and marker.line case (autocolorscale is true by default)
43- var autoColorscaleDftl ;
44- if ( sclIn !== undefined ) autoColorscaleDftl = ! isValidScale ( sclIn ) ;
45- coerce ( prefix + 'autocolorscale' , autoColorscaleDftl ) ;
43+ var autoColorscaleDflt ;
44+ if ( sclIn !== undefined ) autoColorscaleDflt = ! isValidScale ( sclIn ) ;
45+ coerce ( prefix + 'autocolorscale' , autoColorscaleDflt ) ;
4646 var sclOut = coerce ( prefix + 'colorscale' ) ;
4747
4848 // reversescale is handled at the containerOut level
@@ -53,12 +53,12 @@ module.exports = function colorScaleDefaults(traceIn, traceOut, layout, coerce,
5353 if ( prefix === 'marker.line.' ) return ;
5454
5555 if ( ! opts . noScale ) {
56- // handle both the trace case where the dflt is listed in attributes and
56+ // handles both the trace case where the dflt is listed in attributes and
5757 // the marker case where the dflt is determined by hasColorbar
58- var showScaleDftl ;
59- if ( prefix ) showScaleDftl = hasColorbar ( containerIn ) ;
58+ var showScaleDflt ;
59+ if ( prefix ) showScaleDflt = hasColorbar ( containerIn ) ;
6060
61- var showScale = coerce ( prefix + 'showscale' , showScaleDftl ) ;
61+ var showScale = coerce ( prefix + 'showscale' , showScaleDflt ) ;
6262 if ( showScale ) colorbarDefaults ( containerIn , containerOut , layout ) ;
6363 }
6464} ;
0 commit comments