@gitlab/ui 135.1.0 → 135.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -263,8 +263,9 @@ var script = {
263
263
  }
264
264
  },
265
265
  beforeDestroy() {
266
- this.chart.off('mouseout', this.hideAnnotationsTooltip);
267
- this.chart.off('mouseover', this.onChartMouseOver);
266
+ if (!this.chart) return;
267
+ this.chart.off('mouseout', this.onChartDataPointMouseOut);
268
+ this.chart.off('mouseover', this.onChartDataPointMouseOver);
268
269
  },
269
270
  methods: {
270
271
  defaultAnnotationTooltipText(params) {
@@ -148,6 +148,7 @@ var script = {
148
148
  this.setChartSize();
149
149
  },
150
150
  beforeDestroy() {
151
+ if (!this.chart) return;
151
152
  this.chart.off('click', this.handleClick);
152
153
  },
153
154
  methods: {
@@ -270,6 +270,7 @@ var script = {
270
270
  }
271
271
  },
272
272
  beforeDestroy() {
273
+ if (!this.chart) return;
273
274
  this.chart.off('mouseout', this.onChartDataPointMouseOut);
274
275
  this.chart.off('mouseover', this.onChartDataPointMouseOver);
275
276
  },