message: refactor(ChartistComponent): clean up ngOnChanges
  Closes
diff: @@ -95,22 +95,15 @@ class ChartistComponent implements OnInit, OnChanges, OnDestroy {
  if (!this.chart || 'type' in changes) {
  this.renderChart();
  } else {
  - let data: any;
  - let options: Chartist.IChartOptions;
  -
  - if (changes['data'] === undefined) {
  - data = this.data;
  - } else {
  - data = changes['data'].currentValue;
  + if (changes['data']) {
  + this.data = changes['data'].currentValue;
  }
  - if (changes['options'] === undefined) {
  - options = this.options;
  - } else {
  - options = changes['options'].currentValue;
  + if (changes['options']) {
  + this.options = changes['options'].currentValue;
  }
  - (<any>this.chart).update(data, options);
  + (<any>this.chart).update(this.data, this.options);
  }
  }
  