@@ -265,7 +265,7 @@ class TooltipHTMLContent {
265265 private _show : boolean = false ;
266266
267267 private _styleCoord : [ number , number , number , number ] = [ 0 , 0 , 0 , 0 ] ;
268- private _styleCoordCleanups : ReturnType < typeof makeStyleCoord > ;
268+ private _clearStyleCoord : ReturnType < typeof makeStyleCoord > ;
269269
270270 private _enterable = true ;
271271 private _zr : ZRenderType ;
@@ -308,7 +308,7 @@ class TooltipHTMLContent {
308308 : isFunction ( appendTo ) && appendTo ( api . getDom ( ) )
309309 ) ;
310310
311- this . _styleCoordCleanups = makeStyleCoord (
311+ this . _clearStyleCoord = makeStyleCoord (
312312 this . _styleCoord , zr , container , api . getWidth ( ) / 2 , api . getHeight ( ) / 2
313313 ) ;
314314
@@ -474,7 +474,7 @@ class TooltipHTMLContent {
474474 return ;
475475 }
476476 const styleCoord = this . _styleCoord ;
477- this . _styleCoordCleanups = makeStyleCoord ( styleCoord , this . _zr , this . _container , zrX , zrY ) ;
477+ this . _clearStyleCoord = makeStyleCoord ( styleCoord , this . _zr , this . _container , zrX , zrY ) ;
478478
479479 if ( styleCoord [ 0 ] != null && styleCoord [ 1 ] != null ) {
480480 const style = this . el . style ;
@@ -531,16 +531,14 @@ class TooltipHTMLContent {
531531 clearTimeout ( this . _hideTimeout ) ;
532532 clearTimeout ( this . _longHideTimeout ) ;
533533
534- each ( this . _styleCoordCleanups , function ( cleanup ) {
535- cleanup ( ) ;
536- } ) ;
534+ this . _clearStyleCoord && this . _clearStyleCoord ( ) ;
537535
538536 if ( this . el ) {
539537 const parentNode = this . el . parentNode ;
540538 parentNode && parentNode . removeChild ( this . el ) ;
541539 }
542540
543- this . _styleCoordCleanups = this . el = this . _container = null ;
541+ this . _clearStyleCoord = this . el = this . _container = null ;
544542 }
545543
546544}
0 commit comments