Skip to content

Commit

Permalink
[#877] remove reluctant onDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
bossenti committed Jan 21, 2023
1 parent 1d3cd42 commit 075114e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*/

import { Component, OnDestroy, OnInit } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import {
DataExplorerField,
SpQueryResult,
Expand All @@ -35,7 +35,7 @@ import { ECharts } from 'echarts/core';
})
export class HeatmapWidgetComponent
extends BaseDataExplorerWidgetDirective<HeatmapWidgetModel>
implements OnInit, OnDestroy
implements OnInit
{
eChartsInstance: ECharts;
currentWidth: number;
Expand All @@ -55,10 +55,6 @@ export class HeatmapWidgetComponent
this.initOptions();
}

ngOnDestroy(): void {
super.ngOnDestroy();
}

public refreshView() {}

onResize(width: number, height: number) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
*/

import { Component, OnDestroy, OnInit } from '@angular/core';
import { Component, OnInit } from '@angular/core';
import {
Content,
icon,
Expand Down Expand Up @@ -45,7 +45,7 @@ import {
})
export class MapWidgetComponent
extends BaseDataExplorerWidgetDirective<MapWidgetModel>
implements OnInit, OnDestroy
implements OnInit
{
item: any;

Expand Down Expand Up @@ -90,10 +90,6 @@ export class MapWidgetComponent
this.showMarkers = true;
}

ngOnDestroy(): void {
super.ngOnDestroy();
}

markerImage(selectedMarker: string): string {
return selectedMarker === 'Default'
? 'assets/img/marker-icon.png'
Expand Down

0 comments on commit 075114e

Please sign in to comment.