File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ define([
5959 _currentContext : null ,
6060 _addedToBody : false ,
6161
62+ _tooltipNode : null ,
63+
6264 startup : function ( ) {
6365 // Uncomment line to start debugging
6466 //logger.level(logger.DEBUG);
@@ -91,15 +93,14 @@ define([
9193
9294 this . _activeDatasets = [ ] ;
9395
94- if ( ! dojoDom . byId ( "chartjsTooltip" ) ) {
95- domNode = domConstruct . toDom ( _chartJSTooltipTemplate ) ;
96- domConstruct . place ( domNode , win . body ( ) ) ;
97- }
96+ // if (!dojoDom.byId("chartjsTooltip")) {
97+ // this._tooltipNode = domConstruct.toDom(_chartJSTooltipTemplate);
98+ // domConstruct.place(this._tooltipNode , win.body());
99+ // }
98100
99101 this . connect ( this . mxform , "resize" , lang . hitch ( this , function ( ) {
100102 this . _resize ( ) ;
101103 } ) ) ;
102-
103104 } ,
104105
105106 datasetAdd : function ( dataset , datapoints ) {
@@ -201,6 +202,10 @@ define([
201202 if ( this . _handle !== null ) {
202203 mx . data . unsubscribe ( this . _handle ) ;
203204 }
205+
206+ if ( this . _tooltipNode ) {
207+ domConstruct . destroy ( this . _tooltipNode ) ;
208+ }
204209 } ,
205210
206211 customTooltip : function ( tooltip ) {
You can’t perform that action at this time.
0 commit comments