@@ -1139,6 +1139,7 @@ class THistPainter extends ObjectPainter {
11391139 #auto_exec; // can be reused when sending option back to server
11401140 #funcs_handler; // special instance for functions drawing
11411141 #contour; // histogram colors contour
1142+ #create_stats; // if stats was created by painter
11421143
11431144 /** @summary Constructor
11441145 * @param {object|string } dom - DOM element for drawing or element id
@@ -1442,7 +1443,7 @@ class THistPainter extends ObjectPainter {
14421443 histo . fBins = obj . fBins ;
14431444
14441445 // remove old functions, update existing, prepare to draw new one
1445- this . #funcs_handler = new FunctionsHandler ( this , pp , obj . fFunctions , statpainter , this . create_stats ) ;
1446+ this . #funcs_handler = new FunctionsHandler ( this , pp , obj . fFunctions , statpainter , this . # create_stats) ;
14461447
14471448 const changed_opt = ( histo . fOption !== obj . fOption ) ;
14481449 histo . fOption = obj . fOption ;
@@ -1767,7 +1768,7 @@ class THistPainter extends ObjectPainter {
17671768
17681769 /** @summary Returns true if stats box fill can be ignored */
17691770 isIgnoreStatsFill ( ) {
1770- return ! this . getObject ( ) || ( ! this . draw_content && ! this . create_stats && ! this . hasSnapId ( ) ) ;
1771+ return ! this . getObject ( ) || ( ! this . draw_content && ! this . # create_stats && ! this . hasSnapId ( ) ) ;
17711772 }
17721773
17731774 /** @summary Create stat box for histogram if required */
@@ -1806,7 +1807,7 @@ class THistPainter extends ObjectPainter {
18061807 if ( ! stats && ! optstat && ! optfit )
18071808 return null ;
18081809
1809- this . create_stats = true ;
1810+ this . # create_stats = true ;
18101811
18111812 if ( stats )
18121813 return stats ;
0 commit comments