Rely on the event system to remove hidden classes for the Chart

This commit is contained in:
Djamil Legato
2016-03-04 10:33:22 -08:00
parent 0b6df55942
commit 40c869d6d8
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ export default class Chart {
data
});
this.chart = chartist[this.type](this.element.find('.ct-chart').empty()[0], this.data, this.options);
this.element.find('.hidden').removeClass('hidden');
this.chart.on('created', () => this.element.find('.hidden').removeClass('hidden'));
}
updateData(data) {

File diff suppressed because one or more lines are too long